Re: Handler not called on table cell edit

2008-10-13 Thread Corbin Dunn
Your best bet is to override: - (void)textDidEndEditing:(NSNotification *)notification The tableview is always set to be the field editor's delegate. Look for NSReturnTextMovement from [[[notification userInfo] objectForKey:@"NSTextMovement"] integerValue];. corbin On Oct 12, 2008, at 1

Re: Handler not called on table cell edit

2008-10-12 Thread Ken Tozier
Thanks Kyle I just tried your suggestion, but no luck. I read your links but I'm not sure how they apply. I'm hoping to avoid getting fancy with the text editor and doing tons of configuration etc. Basically a i need is when a user hits return in an editable cell, it calls my supplied act

Re: Handler not called on table cell edit

2008-10-12 Thread Kyle Sluder
On Mon, Oct 13, 2008 at 2:13 AM, Ken Tozier <[EMAIL PROTECTED]> wrote: > Seems like it should be pretty straightforward. Anyone see what I'm doing > wrong? Have you sent the column [pageColumn setEditable:YES]? http://cocoadev.com/index.pl?SubclassedNSTextFieldCellTargetAction http://developer.a

Handler not called on table cell edit

2008-10-12 Thread Ken Tozier
Hi I have a dynamically created table with one editable column (page number), but when I change the number and hit "return", my assigned handler never gets called. Here's how the cell is defined: pageCell = [[NSTextFieldCell alloc] init]; [pageCell setEditable: YES]; [pageCell setTarget: s