• 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: Array controllers again: still in dark...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Array controllers again: still in dark...


  • Subject: Re: Array controllers again: still in dark...
  • From: mmalcolm crawford <email@hidden>
  • Date: Sat, 24 Apr 2004 12:22:21 -0700

On Apr 24, 2004, at 12:04 PM, Robert Goldsmith wrote:

My conclusion was that somehow, and I really don't
know how this is all done, the bits 'observing' the variable you are
changing don't always notice when you change the variable. I was
actually deallocating and replacing my data source array so figured the
observers couldn't track this. My solution was to use a 'getter' and
'setter' method pair to do the getting and setting - which the
observers seem to have no problem with :) If you use a 'getter'
'setter' style pair of methods and bind to the 'getter' method, it
should work fine.

<http://developer.apple.com/documentation/Cocoa/Conceptual/ KeyValueObserving/index.html>
in particular "Automatic Versus Manual Support".

mmalc
_______________________________________________
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: 
 >Array controllers again: still in dark... (From: Ondra Cada <email@hidden>)
 >Re: Array controllers again: still in dark... (From: Robert Goldsmith <email@hidden>)

  • Prev by Date: Re: Formatting the cells in NSTableView
  • Next by Date: Simple Key Value Coding Question
  • Previous by thread: Re: Array controllers again: still in dark...
  • Next by thread: command line tool output into a string?
  • Index(es):
    • Date
    • Thread