• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Modeless NSOpenPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: text fields
  • Next by Date: Re: uninstaller
  • Previous by thread: Re: text fields
  • Next by thread: Fwd: GNUstep on Windows, "desktop" bundles...
  • Index(es):
    • Date
    • Thread