[NSOutlineView/NSTableView] Returning nil enables auto-edition?
[NSOutlineView/NSTableView] Returning nil enables auto-edition?
- Subject: [NSOutlineView/NSTableView] Returning nil enables auto-edition?
- From: Stephane Sudre <email@hidden>
- Date: Thu, 12 Jun 2008 19:49:29 -0700
Mac OS X 10.4.11 (PPC)
I'm seeing a potential bug or unsupported behavior when it comes to
cell edition.
I have a NSOutlineView. One of the column data cell of this view is a
text field cell which is potentially editable.
Now, if I return nil in
- (id) outlineView:(NSOutlineView *) inOutlineView
objectValueForTableColumn:(NSTableColumn *) inTableColumn byItem:(id)
inItem
and then later set the string value (through setStringValue:) in
- (void) outlineView:(NSOutlineView *) inOutlineView willDisplayCell:
(NSCell *)cell forTableColumn:(NSTableColumn *) inTableColumn item:
(id) inItem
there's a very weird behavior with leaf rows:
When I select them (first click, it's not like the default behavior
in 10.5), the text field cell automatically enters edition mode
without even asking the opinion of
- (BOOL) outlineView:(NSOutlineView *) inOutlineView
shouldEditTableColumn:(NSTableColumn *) inTableColumn item:(id)inItem
Is it a bug or just an unsupported scenario?
_______________________________________________
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