• 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
Another filesystem mystery
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Another filesystem mystery


  • Subject: Another filesystem mystery
  • From: email@hidden
  • Date: Mon, 25 Feb 2002 21:37:08 -0800

Boy, filtering files for the open panel is turning out to be a good deal harder than I had expected. :->
I've just bumped into the problem that -stringByResolvingSymlinksInPath doesn't resolve alias files, and that such alias files then say they are files even if they point to directories. Apparently I need to resolve such aliases by hand. I've just logged a bug that Cocoa ought to make this issue more or less completely invisible, at least when -stringByResolvingSymlinksInPath is used. Sigh.
So after an hour or so searching the archives for every relevant keyword I could think of, I found only one small snippet of actual example code that is written to handle this, and there are big caveats attached to it that it's untested, etc. Does anybody have known good code they would be willing to share? I'm hoping for an NSString category like -stringByResolvingSymlinksAndAliasesInPath, but anything I can massage into that form myself would be welcome.
Please reply directly to me, I'll post the best code I get (or write :->) to the list later. Thanks!

Ben Haller
Stick Software
_______________________________________________
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: Another filesystem mystery
      • From: Chris Parker <email@hidden>
    • Re: Another filesystem mystery
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: How to mount an iDisk?
  • Next by Date: Re: Document based application with that auto-new-doc behaviour
  • Previous by thread: Re: Putting Non Date in Date formatted text field
  • Next by thread: Re: Another filesystem mystery
  • Index(es):
    • Date
    • Thread