• 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
rename check? And alias...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rename check? And alias...


  • Subject: rename check? And alias...
  • From: Ondra Cada <email@hidden>
  • Date: Fri, 5 May 2006 04:53:52 +0200

Hello,

sorry if this is a trivial question, but is there a good check whether a file can be *renamed*?

Although in practice NSFileManager's isDeletableFileAtPath: seems to work pretty well, I somewhat fear with HFS+ attributes and ACLs and whatsnot there might perhaps be a situation when a file is deletable, but not renameable (or vice versa)... perhaps I've looked in a bad way, but I haven't been able to find a doc which would explicitly cover this?

(Oh, by the way... if you happen to have at hand an example code to make an alias, preferrably as an NSFileManager category, I'd be grateful if you can send /a link/ to me. Though, I haven't checked cocoabuilder/google/Carbon docs yet, so it is quite possible this answer can be found easily; in that case please don't bother and I do apologize: just that since I am writing anyway, I though I may ask, for I know I'll need to make aliases tomorrow when the other tasks are solved :))

Thanks for any advice,
---
Ondra Čada
OCSoftware:     email@hidden               http://www.ocs.cz
private         email@hidden             http://www.ocs.cz/oc


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: rename check? And alias...
      • From: "Lawrence Sanbourne" <email@hidden>
    • Re: rename check? And alias...
      • From: Uli Kusterer <email@hidden>
  • Prev by Date: Re: NSTableView into edit mode after an insert
  • Next by Date: Re: Animated split view collapsing
  • Previous by thread: Re: still wrestling with dynamic columns and column auto-resizing
  • Next by thread: Re: rename check? And alias...
  • Index(es):
    • Date
    • Thread