Re: Force NSPopUpButtonCell to edit like a text cell
Re: Force NSPopUpButtonCell to edit like a text cell
- Subject: Re: Force NSPopUpButtonCell to edit like a text cell
- From: Frank Midgley <email@hidden>
- Date: Mon, 27 Mar 2006 17:46:22 -0600
On Mar 24, 2006, at 9:49AM, Tony S. Wu wrote:
How do i force a NSPopUpButtonCell to edit like a text cell?
i tried - (void)editWithFrame: inView: editor: delegate: event: but
it didn't render correctly.
someone suggested NSComboBoxCell, which i've tried.
but i didn't like its behavior as much, and the arrows render quite
a bit too low when used in a table view.
thanks.
What is the behavior you are looking for? How will the user trigger
the editing? A single click will pop-up the menu so presumably
they'll have to double-click? Also, should the entered text by added
as a new item to the pop-up? And should the new item be available in
all of the pop-ups from that point forward? If that's the case then
it would probably make more sense to have a "favorites" pref pane
that had an editable table. Then just have an "Edit Favorites" item
(or whatever the name should be) in each pop-up that opens the pref
pane. If the text entered should only be used that one time then a
combo box is the standard UI. You'll have to roll your own control
if that's not acceptable. It shouldn't be too hard to adapt the
ImageAndTextCell example (search the cocoa-dev archives) to have a
pop-up menu instead of the image.
-Frank
------------------------------------
Frank M. Midgley
email@hidden
http://homepage.mac.com/knarf/
_______________________________________________
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