• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Custom Field Editor for NSTableView with bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Image cache: Where is it and how do I refresh it?
  • Next by Date: NSScanner:nil string argument
  • Previous by thread: Re: Binding NSPopUpButton with Option "Inserts Null Placeholder"
  • Next by thread: NSScanner:nil string argument
  • Index(es):
    • Date
    • Thread