Re: NSOpenPanel and the New Folder button
Re: NSOpenPanel and the New Folder button
- Subject: Re: NSOpenPanel and the New Folder button
- From: Tom Harrington <email@hidden>
- Date: Thu, 11 Sep 2003 15:25:54 -0600
On Thursday, September 11, 2003, at 05:26 AM, M. Uli Kusterer 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...
If you wanted to be _really_ cautious about that, you could also try
NSObject's -methodSignatureForSelector, and examine the resulting
method signature to make sure it's what you expect. Probably still not
a complete guarantee, but would probably improve reliability as well.
--
Tom Harrington
email@hidden
_______________________________________________
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.