NSOutlineView View Based and editing
NSOutlineView View Based and editing
- Subject: NSOutlineView View Based and editing
- From: Daniele Margutti <email@hidden>
- Date: Wed, 28 Mar 2012 20:17:25 +0200
Hi guys,
I'm working with the new NSOutlineView View based control.
I've created my own NSTableCellView subclass where I've place some controls, one of them is an NSTextField.
Now I would to implement a simple cell editing as like in the old cell-based table.
So I've set a datasource and a delegate for my table and I've implemented:
- (BOOL)outlineView:(NSOutlineView *)outlineView shouldEditTableColumn:(NSTableColumn *)tableColumn item:(id)item {
return YES;
}
And I've override:
- (BOOL)validateProposedFirstResponder:(NSResponder *)responder forEvent:(NSEvent *)event {
[myTextField becomeFirstResponder];
return YES;
}
inside my NSTableCellView.
However nothing happends; shouldEditTableColumn seems never called (nothing happends when I try to double click the cell or select and click it for a delayed editing), and the same thing happends with validateProposed... in my cell.
Any idea? What's wrong?
TIA
Daniele
_______________________________________________
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