Re: file browsing?
Re: file browsing?
- Subject: Re: file browsing?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Wed, 28 Apr 2004 10:14:32 +0200
At 11:07 Uhr -0700 26.04.2004, David Piasecki wrote:
NSFileManager seems to offer quite a bit of control, but is there
any file browsing object currently available that I can just drop
into my application where I can grab some user-selected path?
You might also want to support drag and drop. There are some
protocols for NSView subclasses for doing that. It's much more
convenient for your users to be able to drop files onto a view in
your app, as they can locate it in the Finder or drag an open file's
proxy icon over instead of having to navigate to it again using
NSOpenPanel.
I'm working on a "file path display" control not unlike what
Sherlock uses to display the path of a found file, but it's not yet
ready for prime-time. However, if you accept drops of
NSFilenamesPboardType on a custom view that simply shows the display
name and icon of a file (both can be determined easily using methods
in NSFileManager and NSWorkspace), you'd have a nice way for the user
to specify a file.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.