[Openmcl-devel] Modal dialog problems with CCL 1.9 32/64 on Mountain Lion
Michael Minerva
minerva at agentsheets.com
Fri Aug 31 10:37:43 PDT 2012
I tested this on Mountain Lion 10.8.2 (Developer pre-release), Lion 10.7.3, and snow leopard 10.6.8. Both Lion and Mountain Lion exhibited the erroneous behavior (directories not loading and spinning progress indicator) with the dispatch_async. As Matthew noted, with Snow Leopard, in the dispatch_async example the chooser behaved normally (as it did on all three setups with performSelector:).
I personally was a little surprised to see this behavior dating back to Lion.
On Aug 31, 2012, at 10:59 AM, R. Matthew Emerson wrote:
>
> On Aug 31, 2012, at 9:36 AM, Raffael Cavallaro <raffaelcavallaro at me.com> wrote:
>
>>
>> On Aug 30, 2012, at 10:45 PM, Gary Byers <gb at clozure.com> wrote:
>>
>>> It'd be interesting to know whether that behaves any differently for you
>>> than the one which uses GUI:EXECUTE-IN-GUI.
>>
>> I see two significant differences between the two examples running Version 1.9-dev-r15452M-trunk both (DarwinX8664) and (DarwinX8632):
>>
>> A. The version that uses objective-c directly (with the example class and #/performSelectorOnMainThread:withObject:waitUntilDone:) works properly every time - panels are populated with files, etc.
>>
>> B. The version that uses gui:execute-in-gui exhibits two bugs:
>>
>> 1. the empty-directories-until-presentation-style-is-changed issue is present the first time through the loop in both 32 and 64 bit IDEs - on subsequent iterations of the loop the directory is populated *whether I have changed presentation style the first time through or not*. This pattern is reliable and repeatable - if I call the loop again, the first time through the empty directories issue is present again; on subsequent iterations the directory is populated.
>>
>> 2. The gui:execute-in-gui version will not show quick-look previews in column view in either the 32-bit or 64-bit IDE - the field where the preview should be shows the spinning (non)progress indicator instead of the file's quick-look preview. This is true on all iterations, not just the first when the directory is not populated. The gui:execute-in-gui version *does* show previews in Cover Flow view, just not in Column view. The other (#/performSelectorOnMainThread) version reliably shows quick-look previews in both Column view and Cover Flow view in both the 32 and 64 bit IDEs.
>
> I was able to duplicate this in an Objective-C program.
>
> http://www.clozure.com/~rme/OpenPanelTest.zip
>
> When you build and run this, a little window will appear with two buttons. One will show an open panel via a dispatch_async call, and the other uses performSelectorOnMainThread. The respective buttons show open panels that display symptoms like the ones you describe.
>
> When I build and run this on my Snow Leopard system, both versions appear to behave normally.
>
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel
More information about the Openmcl-devel
mailing list