• 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: NSObjectController HELP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSObjectController HELP


  • Subject: Re: NSObjectController HELP
  • From: Wade Tregaskis <email@hidden>
  • Date: Sun, 6 Jun 2004 15:18:48 +1000

The problem is that the textfields that are bound to the instance variables don't seem to see the changes in my instance variables (when they are changed as the app runs) and update themselves accordingly. Maybe I misread the docs, but I thought that KVO meant the bound object would be updated as the instance variable changed? Why would they see the initial values but not the changes as it executes?

How are you changing the instance variables' values? You cannot change them directly, KVO requires that you use appropriate accessor methods.

I should like to mention that this stumped me as well, the first time I worked with bindings. All documentation I'd read up till that point (and indeed, even now) suggested everything was "magic" and "automatic". Combined with the hype that bindings generated when first released, I figured this was obviously how it worked.

Although of course there'd be the usual issues with compatibility and so-called "standards" and whatever else, I think it'd be a terrific idea to implement it such that bindings worked at the compiler level, on the instances themselves, rather than requiring this huge confusing web of AppKit functionality.

Of course, I'm not volunteering to modify gcc to do this. ;)

FWIW, I feel bindings is frequently over-hyped, and not really a useful tool for newbies to bother learning. I've been coding for Cocoa for several years now, and I don't have any use for it myself; while others might, I don't think it's a generally useful tool.

Wade Tregaskis (aim: wadetregaskis)
-- Sed quis custodiet ipsos custodes?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: NSObjectController HELP (From: Vince Ackerman <email@hidden>)
 >Re: NSObjectController HELP (From: mmalcolm crawford <email@hidden>)
 >Re: NSObjectController HELP (From: Vince Ackerman <email@hidden>)
 >Re: NSObjectController HELP (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: NSAttributedString and bindings
  • Next by Date: Re: NSObjectController HELP
  • Previous by thread: Re: NSObjectController HELP
  • Next by thread: Re: NSObjectController HELP
  • Index(es):
    • Date
    • Thread