• 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: Resolving alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Resolving alias
      • From: David Remahl <email@hidden>
References: 
 >Re: Resolving alias (From: David Remahl <email@hidden>)

  • Prev by Date: Re: Resolving alias
  • Next by Date: Re: NSTableView Highlighting, Speed, etc.
  • Previous by thread: Re: Resolving alias
  • Next by thread: Re: Resolving alias
  • Index(es):
    • Date
    • Thread