• 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
How do I get a file reference w/o relying on the path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I get a file reference w/o relying on the path?


  • Subject: How do I get a file reference w/o relying on the path?
  • From: Brad Stone <email@hidden>
  • Date: Sat, 3 Apr 2010 18:20:25 -0400

I want to store a reference to a file in an ivar that will allow the user to change the file's name and/or the directory (i.e. the path) and still allow me to access it.  I don't want to create a file (like an ailas).  I need to store the file reference in a variable so I can open the file no matter where the user moves it or renames it.

For those of you who know REALbasic I can do this easily with FolderItem.GetSaveInfo.

How can I do this in Cocoa?

Thanks_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Follow-Ups:
    • Re: How do I get a file reference w/o relying on the path?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: What is the runtime context of an event tap?
  • Next by Date: Re: Invalidated managed objects
  • Previous by thread: Re: What is the runtime context of an event tap?
  • Next by thread: Re: How do I get a file reference w/o relying on the path?
  • Index(es):
    • Date
    • Thread