• 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
"Proper" way to deal with "new" and "deprecated" methods when targeting more then one version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"Proper" way to deal with "new" and "deprecated" methods when targeting more then one version


  • Subject: "Proper" way to deal with "new" and "deprecated" methods when targeting more then one version
  • From: Andrei Tchijov <email@hidden>
  • Date: Fri, 18 Nov 2005 17:13:12 -0500

Hi,
Can someone describe "proper" way to deal with "new" and "deprecated" methods? For example, with 10.4 Apple introduced the whole bunch of "... encoding: ..." methods (like stringWithContentsOfFile:encoding:error:) in NSString class. At the same time it marked corresponding methods ( like stringWithContentsOfFile:) as "deprecated". If you are writing application which supposed to work on Panther and Tiger, which way to go? Should you keep using "old" versions? Should you test for version of OS and use old version on Panther and new one on Tiger?
You thoughts, comments will be highly appreciated


Andrei Tchijov
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: URL loading system not threadsafe?
  • Next by Date: How to run modal for all windows?
  • Previous by thread: Re: Fetching entities where optional attribute is set
  • Next by thread: How to run modal for all windows?
  • Index(es):
    • Date
    • Thread