Re: Deprecated methods usage
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