Re: [NSOutlineView/NSTableView] Returning nil enables auto-edition?
Re: [NSOutlineView/NSTableView] Returning nil enables auto-edition?
- Subject: Re: [NSOutlineView/NSTableView] Returning nil enables auto-edition?
- From: Stephane Sudre <email@hidden>
- Date: Wed, 18 Jun 2008 19:38:54 -0700
On Jun 13, 2008, at 11:23 AM, Corbin Dunn wrote:
You probably mean, editing (not edition).
Certainly.
[...]
- (BOOL) outlineView:(NSOutlineView *) inOutlineView
shouldEditTableColumn:(NSTableColumn *) inTableColumn item:(id)inItem
First off -- 10.4 *requires* a double click to begin an editing
session. Are you sure you aren't manually starting the editing by
calling - (void)editColumn:(NSInteger)column row:(NSInteger)row
withEvent:(NSEvent *)theEvent select:(BOOL)select;
In fact, you can break on that method and see when it is invoked,
and look at the bt to figure out why.
No, I checked the source.
Is it a bug or just an unsupported scenario?
I don't think it should happen the way you described, see the notes
above. Really, you should return non-nil from the method. I have a
feeling something else is going on.
This is the solution I used to "fix" the issue.
_______________________________________________
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