Re: NSOpenPanel in Cocoa app won't receive drag n drop
Re: NSOpenPanel in Cocoa app won't receive drag n drop
- Subject: Re: NSOpenPanel in Cocoa app won't receive drag n drop
- From: "John C. Randolph" <email@hidden>
- Date: Sun, 11 Feb 2007 06:52:26 -0800
On Feb 11, 2007, at 1:55 AM, Stefan Werner wrote:
must I go back to using Carbon Navigation Services?
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:contextInfo
:, or -
beginSheetForDirectory:file:types:modalForWindow:modalDelegate:didEndSelector:contextInfo
:
-jcr
“The two most important tools an architect has are the eraser in the
drawing room and the sledge hammer on the construction site. ”
-Frank Lloyd Wright
_______________________________________________
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