Re: Handler not called on table cell edit
Re: Handler not called on table cell edit
- Subject: Re: Handler not called on table cell edit
- From: Corbin Dunn <email@hidden>
- Date: Mon, 13 Oct 2008 09:05:15 -0700
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 11:52 PM, Ken Tozier wrote:
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
action hander. Anything else jump out at you?
On Oct 13, 2008, at 2:33 AM, Kyle Sluder wrote:
On Mon, Oct 13, 2008 at 2:13 AM, Ken Tozier <email@hidden>
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.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSTableColumn_Class/Reference/Reference.html#//apple_ref/occ/instm/NSTableColumn/setEditable:
--Kyle Sluder
_______________________________________________
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