Re: custom openPanel an browser
Re: custom openPanel an browser
- Subject: Re: custom openPanel an browser
- From: "M. Uli Kusterer" <email@hidden>
- Date: Thu, 25 Nov 2004 22:15:55 +0100
At 9:07 Uhr -0500 24.11.2004, Richard Humiston wrote:
I would like to have an openPanel that has the following features / behavior.
1 A browser at the top to select files, and a section below with a
"list", and add and delete buttons.
Are you sure you want to do this? Usually, it's much easier on the
user to just use an NSTableView (which is the add/delete list) and
let the user drop files onto that view from the Finder
(NSFilenamesPboardType).
You could also add an "add" button to that window that shows an
NSOpenPanel that has multiple selection turned on. That's a standard
feature and thus the users are familiar with it. If they switch the
file browser to "list view" (I think that was already in 10.2, but
maybe it is new in 10.3), they can un-collapse several folders and
then select items across folders. And add a "remove" button that
simply calls the delete: method, which you should implement in your
table view delegate. That way, users can select files in your list
and choose the "clear" menu item to remove files.
This accessory view with a list forces your order of doing things
upon your users, while having a list in your window and an "add"
button lets them use the Finder (which is much more comfortable to
use than the NSOpenPanel), *or* an open panel.
And if you're in a "Christmas mood", write the list up as a
self-contained class and make it available to us others :-D
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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