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 protected])
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 [email protected]