Re: NSOpenPanel in Carbon app won't receive drag n drop
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