Custom Field Editor for NSTableView with bindings
Custom Field Editor for NSTableView with bindings
- Subject: Custom Field Editor for NSTableView with bindings
- From: Hendrik Holtmann <email@hidden>
- Date: Sun, 28 May 2006 21:12:40 +0200
Hi everyone,
Apple describes you can swap out the default field editor with a
custom field editor (which is a subclass of NSTextView) using
-(id)windowWillReturnFieldEditor:(NSWindow *)sender toObject:(id)
anObject
{
if ([anObject isKindOfClass:[NSTableView class]])
{
return [[CustomFieldEditorClass alloc] init];
}
return nil;
}
This works fine e.g. for NSTextFields. For NSTableViews the custom
field editor gets active, but after you end editing of an
NSTextFieldCell all changes to the cell will be lost. This only seems
to occur, if the NSTableView uses bindings (which I need).
Anyone has an idea what happens? Mabye apple's example has to be
extended for swapping out the field editor for an NSTableView using
bindings?
I appreciate your help,
Hendrik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden