Re: Displaying Only Readable/Writable Directory on NSOpenPanel
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