Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Modeless NSOpenPanel




Although Xcode documentation says that NSOpenPanel interacts only modally, there is, since MacOSX 10.3, a method of class NSOpenPanel, called:

– beginForDirectory:file:types:modelessDelegate:didEndSelector: contextInfo:

that is supposed to run modeless panel operation.

Having implemented it in a program, I found a rather peculiar behaviour: I associated an action with an "OpenFile" menu item that triggers that method, and here is what happens:

the Open Panel appears, but it disappears suddenly as soon as the mouse is moving, had the user clicked on "OK" or not (and, in fact, the user -me as a matter of fact- hasn't the time to click on anything).

Did I miss something or am I completely dumb ?

Thank you for the help

hussein yahia

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.