• 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: Why are paths depracated in favor of NSURL?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Question about Core Data Models and frameworks
  • Next by Date: Re: My app breaks when moved while running
  • Previous by thread: Why are paths depracated in favor of NSURL?
  • Next by thread: How can I filter out files in root directory like the Finder does?
  • Index(es):
    • Date
    • Thread