NSTableView behavior changes
NSTableView behavior changes
- Subject: NSTableView behavior changes
- From: Harry Plate <email@hidden>
- Date: Tue, 17 Feb 2009 16:37:27 -0800
- Thread-topic: NSTableView behavior changes
I am new to NSTableView (and to Cocoa for that matter) so excuse my lame
questions.
I have an NSTableView doing what I want (kinda), but I want to modify its
behavior, and I am at a loss as where to begin.
What I want is this:
1) to disable any possible editing of the "strings" in the table. Right
now it kinda appears that I can select an entry, and edit it. But for some
magical reason, the table defers to the original value. I like the fact that
the value could not be changed, but would prefer that the user would not get
into any editting mode.
2) I would like my user to be able to select a table entry, and be able
to respond to the 'delete' key - by discarding the selected entry. Currently
that does not work at all.
Currently the reqd data source methods for NSTableView
(numberOfRowsInTableView: and tableView:objectValueForTableColumn:row:) are
implemented in my controller class. So I assume that magically my controller
has become the "data source" for the table view.
I have read something about a "field editor" - could this be the clue to my
rquirements listed above?
-harry
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden