• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextFieldCell in NSMatrix - Selecting vs. Editing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextFieldCell in NSMatrix - Selecting vs. Editing


  • Subject: Re: NSTextFieldCell in NSMatrix - Selecting vs. Editing
  • From: Glen Simmons <email@hidden>
  • Date: Wed, 20 Oct 2004 09:50:28 -0500

On 20 Oct, 2004, at 9:18 AM, stephane sudre wrote:


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.

Oh well, I guess I'll have to do some overriding of mouseDown, etc. Annoying and inconsistent with NSTable/OutlineView. Oh, well.

Thanks,
Glen
_______________________________________________
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
References: 
 >Re: NSTextFieldCell in NSMatrix - Selecting vs. Editing (From: Stéphane Sudre <email@hidden>)
 >Re: NSTextFieldCell in NSMatrix - Selecting vs. Editing (From: Glen Simmons <email@hidden>)
 >Re: NSTextFieldCell in NSMatrix - Selecting vs. Editing (From: stephane sudre <email@hidden>)

  • Prev by Date: uninstaller
  • Next by Date: Re: [newbie] Create app as a startup item
  • Previous by thread: Re: NSTextFieldCell in NSMatrix - Selecting vs. Editing
  • Next by thread: NSUserDefaultsController and multiple sets of preferences?
  • Index(es):
    • Date
    • Thread