• 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
Re: NSOpenPanel in Carbon app won't receive drag n drop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOpenPanel in Carbon app won't receive drag n drop


  • Subject: Re: NSOpenPanel in Carbon app won't receive drag n drop
  • From: Stefan Werner <email@hidden>
  • Date: Sun, 11 Feb 2007 20:23:05 +0100

Hi,

On Feb 11, 2007, at 3:52 PM, John C. Randolph wrote:

You're not telling the Open panel what types of files to accept. Instead of the -runModal method which it inherits from NSPanel, use


-runModalForDirectory:file:types:,
- beginForDirectory:file:types:modelessDelegate:didEndSelector:contextIn fo:, or - beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndS elector:contextInfo:

Thanks, I tried that, but it still doesn't work as expected. I tried both passing in a (what I think valid, as my file types appear to be filtered correctly) type array and passing nil as type array. Regular Cocoa and Carbon file dialogs allow one to drag a folder on them and then the file dialog will navigate to that folder. This one won't. I'm suspecting that the NSOpenPanel is expecting some event handling in place that is not there when being instantiated from a Carbon app?


Stefan

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSOpenPanel in Cocoa app won't receive drag n drop (From: Stefan Werner <email@hidden>)
 >Re: NSOpenPanel in Cocoa app won't receive drag n drop (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: Very strange Cocoa application issue.
  • Next by Date: Re: Linking against libcrypto.dylib fails at strip
  • Previous by thread: Re: NSOpenPanel in Cocoa app won't receive drag n drop
  • Next by thread: Bindings: Multiple Selections & Custom Classes
  • Index(es):
    • Date
    • Thread