Editing an NSOutlineView item
Editing an NSOutlineView item
- Subject: Editing an NSOutlineView item
- From: Luther Baker <email@hidden>
- Date: Mon, 27 Oct 2014 19:02:44 -0500
I've successfully built an NSOutlineView and configured the items for
editing. Got that working.
Now, in my delegate/datasource, I am implementing
- (BOOL)outlineView:(NSOutlineView *)outlineView
shouldEditTableColumn:(NSTableColumn *)tableColumn
item:(id)item {
NSLog(@"hi");
}
but when I tap on a field a 2nd time to edit it - this never gets invoked.
I am also implementing
- (void)outlineView:(NSOutlineView *)outlineView
setObjectValue:(id)object
forTableColumn:(NSTableColumn *)tableColumn
byItem:(id)item {
NSLog(@"hi");
}
but once I replace the text of the field and hit enter, this is not called
either. Is there something else I must to do get complete editing
capability?
Also, 1 final trivial question ... let's say I want to allow editing ONLY
after right clicking and picking a context menu item. Assuming I can get
the row and column from the event, how do I programmatically turn the
editor on for a specific field?
Thanks,
-Luther
_______________________________________________
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