• 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
Re: Handler not called on table cell edit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Handler not called on table cell edit (From: Ken Tozier <email@hidden>)
 >Re: Handler not called on table cell edit (From: "Kyle Sluder" <email@hidden>)
 >Re: Handler not called on table cell edit (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: NSTableView and drag and drop
  • Next by Date: Re: textDidChange: for several NSTextFields
  • Previous by thread: Re: Handler not called on table cell edit
  • Next by thread: Remove help menu shortcut
  • Index(es):
    • Date
    • Thread