Re: NSOpenPanel and the New Folder button
Re: NSOpenPanel and the New Folder button
- Subject: Re: NSOpenPanel and the New Folder button
- From: Tim Hewett <email@hidden>
- Date: Sun, 14 Sep 2003 23:30:38 +0100
It appears that this approach doesn't work with Panther. My
app does this:
if( [openPanel
respondsToSelector:@selector(_setIncludeNewFolderButton:)] )
[openPanel _setIncludeNewFolderButton:YES];
Under Panther this appears to cause the app to crash, works
great for 10.2.x though.
Regards,
Tim.
On Thursday, Sep 11, 2003, at 19:10 Europe/London,
email@hidden wrote:
>
At 0:18 Uhr -0400 11.09.2003, Scott Anguish wrote:
>
> No, it's not safe.
>
>
>
> Using private API (it's not just undocumented) means that it
>
> could go away. If it does, your app dies.
>
>
He could check with respondsToSelector: (or whatever the exact name
>
was) beforehand. That way, if they removed that method, at least his
>
app would still work, though without the button.
>
>
Though it'd still be dangerous if Apple decided to simply change the
>
type of the parameter...
>
--
>
Cheers,
>
M. Uli Kusterer
>
------------------------------------------------------------
>
"The Witnesses of TeachText are everywhere..."
>
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.