Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't convert path ~/... to Fsref



On Sep 29, 2005, at 1:30 PM, Bryan Prusha wrote:

How about CFURLCreateWithFileSystemPath followed by CFURLGetFSRef?

The CFURL path handling won't canonicalize or otherwise resolve filesystem path strings. Foundation has -[NSString stringByExpandingTildeInPath] and -[NSString stringByStandardizingPath], but there aren't CF equivalents.


Note that features like tilde-expansion are actually implemented at the framework level, they aren't a kernel/filesystem feature.

For what the specific example you gave ("~/Library/Preferences/ temp.tiff"), you should use FSFindFolder to locate the user's Preferences folder.

  -- Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Can't convert path ~/... to Fsref (From: "Denis @ TheOffice" <email@hidden>)
 >Re: Can't convert path ~/... to Fsref (From: Rosyna <email@hidden>)
 >Re: Can't convert path ~/... to Fsref (From: "Denis @ TheOffice" <email@hidden>)
 >Re: Can't convert path ~/... to Fsref (From: Bryan Prusha <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.