Re: Why are paths depracated in favor of NSURL?
Re: Why are paths depracated in favor of NSURL?
- Subject: Re: Why are paths depracated in favor of NSURL?
- From: Gregory Weston <email@hidden>
- Date: Fri, 8 Feb 2008 13:17:13 -0500
Jerry Krinock wrote:
Most of the recent API from Apple refer to files with NSURL instead of
NSString paths. All I get out of this is the pain of having to write
a couple extra lines of code. What are the advantages that I'm not
appreciating?
I'm not sure if deprecated is the right word, but I'd suggest that
URLs are preferred over simple paths because if you're going to
restrict yourself to brittle string-based file references you might
as well at least pick a form that's flexible and extensible.
Something that can reference locations other than locally-mounted
file systems, for example.
_______________________________________________
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