I tried it.
It does not work either...
----- Original Message -----
From: "Chris Hanson" <email@hidden>
To: "Denis@TheOffice" <email@hidden>
Cc: "Mailing List" <email@hidden>
Sent: Thursday, September 29, 2005 4:41 PM
Subject: 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