Re: NSOpenPanel may not respond to setDirectoryURL?
Re: NSOpenPanel may not respond to setDirectoryURL?
- Subject: Re: NSOpenPanel may not respond to setDirectoryURL?
- From: Mike Abdullah <email@hidden>
- Date: Thu, 08 Mar 2012 14:21:13 +0000
On 7 Mar 2012, at 19:07, Howard Moon wrote:
> Hi all,
>
> I'm really not that familiar with Objective-C and Cocoa yet, but I'm getting a warning for something that works fine, and I hate warnings. The warning is:
>
> 'NSOpenPanel' may not respond to '-setDirectoryURL:'
>
> I know that setDirectoryURL: is an NSSavePanel message, but NSOpenPanel derives from NSSavePanel, so why does it give me this warning? As I said, it works fine (i.e., the open panel starts out in the folder I specified). Is there a case where it WON'T work? If not, then is there a way to prevent the warning?
That method was introduced in 10.6. Are you perhaps building against the 10.5 SDK or even earlier?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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