• 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: Deprecated methods usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deprecated methods usage


  • Subject: Re: Deprecated methods usage
  • From: Gregory Weston <email@hidden>
  • Date: Wed, 03 Aug 2011 05:55:13 -0400

Vyacheslav Karamov wrote:

> Could I use deprecated methods in my application?
> I have to support OS X 10.4+ and for example need to obtain file
> modification date,
> so could I use [NSFileManager fileAttributesAtPath:traverseLink:] which
> is deprecated in 10.5?

Deprecation is your warning that at some point in the planned future this routine is going away. You should be looking for a replacement. If you still need to support an OS version for which no suitable replacement is available or constructible then use it, but it's best to do so conditionally - use some mechanism provided by your compiler and/or runtime environment to use the new API if available and the old only when necessary.
_______________________________________________

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

  • Prev by Date: Re: How to detect Time Machine volume?
  • Next by Date: Re: Deprecated methods usage
  • Previous by thread: Re: Deprecated methods usage
  • Next by thread: NSTableView with autoResizing Column: How to trigger auto-resizing after setFrame:?
  • Index(es):
    • Date
    • Thread