Modeless NSOpenPanel
Modeless NSOpenPanel
- Subject: Modeless NSOpenPanel
- From: Hussein Yahia <email@hidden>
- Date: Wed, 20 Oct 2004 23:32:11 +0200
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:
This email sent to email@hidden