• 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: Scott Ribe <email@hidden>
  • Date: Tue, 24 Nov 2009 13:37:24 -0700
  • Thread-topic: tableView:setObjectValue:forTableColumn:row: not called when button pressed

Thanks for the in-depth info.

> Maybe I missed something earlier in this thread, but I don't see why using the
> NSEditor protocol isn't a better solution.

Well, I'm not using bindings, and I am using NSWindowController which does
not implement the NSEditor protocol.

> This is a superior solution to the 'makeFirstResponder:' approach, I believe,
> because it tells you if committing fails due to a validation error -- in which
> case I assume you wouldn't want to proceed with whatever the button normally
> triggers.

I'm handling validation outside the validation protocol anyway (for good
reasons...)

> Finally, there *is* a more general solution, which is to subclass
> NSWindowController and implement both the NSEditor and NSEditorRegistration
> protocols, much like NSController does.

This is probably the best direction, long-term. I'm not prepared to tackle
this any time soon, but as part of future evolution plans I'll look into it.
(Old code base, predates bindings & NSController & NSViewController.)

--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice


_______________________________________________

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: 
 >Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Core Data: Specifying latest .mom resource. Was: NSMigratePersistentStoresAutomaticallyOption...
  • Next by Date: Re: Cant Access Properties of NSManagedObject from a NSArrayController...
  • Previous by thread: Re: tableView:setObjectValue:forTableColumn:row: not called when button pressed
  • Next by thread: How to avoid text distortion
  • Index(es):
    • Date
    • Thread