FROM : Gregory Weston
DATE : Fri Feb 08 19:17:13 2008
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.
DATE : Fri Feb 08 19:17:13 2008
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.
| Related mails | Author | Date |
|---|---|---|
| Jerry Krinock | Feb 8, 18:35 | |
| Gregory Weston | Feb 8, 19:17 |






Cocoa mail archive

