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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to