• 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: Initial value of on/off buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Initial value of on/off buttons


  • Subject: Re: Initial value of on/off buttons
  • From: Scott Anguish <email@hidden>
  • Date: Mon, 28 Apr 2008 01:42:12 -0400

and, to add another addendum..

in the case of some controls (text fields and text views for example) not using a controller _can_ cause you problems, and your app to lose data.

anything that doesn't immediately send its value to from a control to the data model upon editing requires some protocol support that your data object just isn't going to have by default. these protocols ensure that when a view or object resigns its active status that the values are updated appropriately.



On Apr 28, 2008, at 1:05 AM, William Turner wrote:

You aren't strictly _required_ to use an NSObjectController (or other NSController subclass), but in practice it is generally better to do so. Yes, you can bind your views directly to your controller classed, but that's not really the ideal pattern

_______________________________________________

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: Initial value of on/off buttons (From: Yann Disser <email@hidden>)
 >Re: Initial value of on/off buttons (From: "Hamish Allan" <email@hidden>)
 >Re: Initial value of on/off buttons (From: Yann Disser <email@hidden>)
 >Re: Initial value of on/off buttons (From: "I. Savant" <email@hidden>)
 >Re: Initial value of on/off buttons (From: Yann Disser <email@hidden>)
 >Re: Initial value of on/off buttons (From: William Turner <email@hidden>)

  • Prev by Date: Re: Observer CoreData Objects changes
  • Next by Date: How is "Apple + Ctrl + D" implemented?
  • Previous by thread: Re: Initial value of on/off buttons
  • Next by thread: Re: Initial value of on/off buttons
  • Index(es):
    • Date
    • Thread