Re: NSTextFieldCell in NSMatrix - Selecting vs. Editing
Re: NSTextFieldCell in NSMatrix - Selecting vs. Editing
- Subject: Re: NSTextFieldCell in NSMatrix - Selecting vs. Editing
- From: stephane sudre <email@hidden>
- Date: Wed, 20 Oct 2004 16:18:45 +0200
On Oct 20, 2004, at 4:06 PM, Glen Simmons wrote:
On 19 Oct, 2004, at 3:36 PM, Stéphane Sudre wrote:
On mardi, octobre 19, 2004, at 10:25 PM, Glen Simmons wrote:
I have an NSTextFieldCell subclass that draws an image in addition
to it's string, somewhat similar to the DragNDropOutlineView
example, but I'm using it in an NSMatrix subclass. The matrix is set
to list mode so that multiple cells can be selected. Everything was
working nicely until I made the cells editable so the user could
edit the string. Now, editing works, but I can no longer select
cells. Are these two operations mutually exclusive? That would be
quite inconvenient. Any suggestions for workarounds so that the user
can both select cells and edit the cell text?
A NSTableView? :-)
Not quite right for showing thumbnails.
Maybe the "problem" is coming from the fact that
acceptsFirstResponder is returning YES when the cell is editable.
I don't understand. Wouldn't it *have* to be firstResponder to be
editable?
Hum, after having a look at the source code of NSMatrix (in gnustep),
it loos like that as soon as the cell is selectable (when it's
editable, it's selectable), you can say bye bye to list mode.
_______________________________________________
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