Re: simple file browser
Re: simple file browser
- Subject: Re: simple file browser
- From: Jens Alfke <email@hidden>
- Date: Mon, 25 Jan 2010 14:22:19 -0800
On Jan 25, 2010, at 2:12 PM, Ariel Feinerman wrote:
I want to implement file browser in my app to allow to see hidden
files / other. Can you suggest me code examples of cocoa file browser?
Use an NSOpenPanel, set an instance of your class as its delegate, and
implement the panel:shouldShowFilename: method to always return YES,
even for hidden files.
Resist the urge to implement your own file-chooser UI. Most of it is
pretty simple to do using NSFileManager and NSOutlineView (or
NSBrowser), but there are all sorts of details like whether to show
file extensions and whether to localize filenames. It's usually a much
better idea to just use the standard open/save panels.
—Jens_______________________________________________
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