• 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: wrapper bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wrapper bug?


  • Subject: Re: wrapper bug?
  • From: "Philip Q" <email@hidden>
  • Date: Tue, 15 May 2007 02:05:08 +1200

On 15/05/07, Roland Silver <email@hidden> wrote:
In my WrapperBug project folder (/Users/rollos/WrapperBug), I have a
data file called "file1" and a folder called "folder" containing an
alias to file1 called "file1Alias".
How come executing the following code results in the messages
   wrapper2 filename=file1Alias
   wrapper2 is a regular file
rather than
   wrapper2 filename=file1Alias
   wrapper2 is a link wrapper
?

Because an alias and a symbolic link are two different things. An alias is an OS9 carry-over, which has similar functionality to a UNIX symbolic link, but are handled very differently depending on where you go (see: <http://developer.apple.com/documentation/MacOSX/Conceptual/BPFileSystem/Articles/Aliases.html> for a better explanation).

To check if the file is an alias, use FSIsAliasFile().

-Phil
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >wrapper bug? (From: Roland Silver <email@hidden>)

  • Prev by Date: wrapper bug?
  • Next by Date: Re: sleep problem when mounting a windows volume
  • Previous by thread: wrapper bug?
  • Next by thread: NYC Cocoaheads meeting
  • Index(es):
    • Date
    • Thread