Not drawing NSTableView rows as selected?
Not drawing NSTableView rows as selected?
- Subject: Not drawing NSTableView rows as selected?
- From: "Theodore H. Smith" <email@hidden>
- Date: Mon, 27 Jun 2005 13:40:13 +0100
I'm trying to make a list of controls, kind of like you see in
Apple's Mail, in the Prefs>Rules window.
In Apple's Mail, when you edit a field, or push a button, the row is
not selected. I also want to do the same thing.
Currently, I'm using NSTableView. This will select the row containing
the control that I click on. I don't want it to be drawn selected. I
tried disallowing selections, but unfortunately this actually
disallowed clicking on the buttons and fields!
Am I meant to be using NSMatrix instead? Also, must I generate the
controls programmatically? I kind of like NSTableView's data source
approach, and the fact that NSTableView is responsible for displaying
all managing all the lists of controls. Also my code is already set
up to be done with data sources.
I've never used an NSMatrix before, and so I'm not sure if NSMatrix
will be able to do what I want.
I think that if NSMatrix was "the right way" to do this, but
NSTableView could be subclassed to not hilite selected rows, I'd
rather keep the NSTableView, because almost everything works as I
want and it's only one small change I need.
--
http://elfdata.com/plugin/ Industrial strength string processing,
made easy.
"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."
_______________________________________________
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