• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOpenPanel and the New Folder button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: NSOpenPanel and the New Folder button (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: Re: 2 questions on Cocoa design and "expected" behavior
  • Next by Date: Pseudo-tty as piped to NSTask -- help?
  • Previous by thread: Re: NSOpenPanel and the New Folder button
  • Next by thread: Re: replaceOccurrencesOfString not recognized?
  • Index(es):
    • Date
    • Thread