• 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: Displaying Only Readable/Writable Directory on NSOpenPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying Only Readable/Writable Directory on NSOpenPanel


  • Subject: Re: Displaying Only Readable/Writable Directory on NSOpenPanel
  • From: Corbin Dunn <email@hidden>
  • Date: Thu, 23 Feb 2006 11:49:32 -0800


I use NSOpenPanel for user to be able to select the directory she wants to
use as default target directory for downloading of items. At the moment,
users can view and select the directories which don't have read/write
permission from the openpanel.


Is there a way to filter out directories which are not readable and writable
when using NSOpenPanel's beginSheetForDirectory function? Or upon user
selecting a path, is there a way I can check whether the directory has the
necessary access permission? Thank you.

There are many ways to do this. You probably should use the delegate method:


- (BOOL)panel:(id)sender shouldShowFilename:(NSString *)filename;

Which, is poorly named, and really means "should make it selectable".

--corbin
_______________________________________________
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


References: 
 >Displaying Only Readable/Writable Directory on NSOpenPanel (From: "David Chan" <email@hidden>)

  • Prev by Date: Addendum: Fetch Requests and NSDecimalNumbers --> Fetch on Transient Values
  • Next by Date: Re: Fetch Requests and NSDecimalNumbers
  • Previous by thread: Displaying Only Readable/Writable Directory on NSOpenPanel
  • Next by thread: Design question: undo-safe "Processing..." sheets
  • Index(es):
    • Date
    • Thread