Re: Array controllers again: still in dark...
Re: Array controllers again: still in dark...
- Subject: Re: Array controllers again: still in dark...
- From: Robert Goldsmith <email@hidden>
- Date: Sat, 24 Apr 2004 20:04:30 +0100
>
please, tell me why have I to use explicitly the lines marked /**/? I
>
have thought this would be done automagically for me?
I came across the same problem using array controllers with things that
were not tables. 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. Obviously, as you are mod'ing, not get/setting, this
maybe more effort for you than it is worth :)
Robert
---
GnuPG public key:
http://www.Far-Blue.co.uk
[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
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.