• 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: tableView:setObjectValue:forTableColumn:row: not called when button pressed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed


  • Subject: Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed
  • From: Quincey Morris <email@hidden>
  • Date: Sat, 21 Nov 2009 12:07:46 -0800

On Nov 20, 2009, at 21:15, Kyle Sluder wrote:

> On Nov 20, 2009, at 6:38 PM, "Sean McBride" <email@hidden> wrote:
>
>> Quincey Morris (email@hidden) on 2009-11-20 6:34 PM said:
>>
>>> ...the window controller could send
>>> 'commitEditing:' messages directly to text fields and other views that
>>> implement the NSEditor protocol.
>>
>> Nope.  Despite the docs, you can't send commitEditing to a textfield.
>
> It might be worth trying -commitEditingWithDelegate:…. Barring that, try disassembling -[NSController commitEditing] to see what the heck it does. Perhaps like a lot of other things it behaves specially when the text system is involved.

When I wrote that about text fields, it was a bit of hand-waving, because I've never actually done it -- I've always used a mediating NSObjectController, via which text field commits work fine.

It occurs to me that perhaps the reason sending 'commitEditing:' to a text field doesn't work is that you need to send it to the field editor, not the text field itself? Or something like that.


_______________________________________________

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

  • Follow-Ups:
    • Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed
      • From: Kyle Sluder <email@hidden>
References: 
 >Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed (From: Scott Ribe <email@hidden>)
 >Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed (From: Quincey Morris <email@hidden>)
 >Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed (From: "Sean McBride" <email@hidden>)
 >Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: What exactly does NSController do?
  • Next by Date: Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed
  • Previous by thread: Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed
  • Next by thread: Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed
  • Index(es):
    • Date
    • Thread