Re: Resolving alias
Re: Resolving alias
- Subject: Re: Resolving alias
- From: email@hidden
- Date: Fri, 17 Jan 2003 22:03:50 -0800
At 1:49 PM +0100 1/17/03, David Remahl wrote:
>
Hmm...I was thinking...
>
>
Would it even be possible to do this in a backwards compatible way? I mean, if one made a XXFSRef class (XX indicating that it doesn't have to be Apple sanctioned) that is a subclass of NSString, which really just forwards all string related method calls to the path of the file which it represents...
The problem is NSString has methods to edit the string plus you can only have an FSRef for an existing file. You could handle this by checking if the file exists every time the string changes then using an FSRef instead of a string until the string was purposely changed but that's a lot of work an could lead to problems depending what asusmptions the programmer makes. The problem to begin with is a POSIX file path is being used as a file primitive.
My suggestion was to create a XXFSRef which could return an NSString but did not implement NSString methods.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.