Re: Synthesized properties for scalars not KVO compliant
Re: Synthesized properties for scalars not KVO compliant
- Subject: Re: Synthesized properties for scalars not KVO compliant
- From: Kiel Gillard <email@hidden>
- Date: Wed, 20 May 2009 10:05:17 +1000
I should also mention I am not assigning a value to the scalar directly.
On 20/05/2009, at 9:52 AM, Kiel Gillard wrote:
Hi all,
I have a few scalar (NSUInteger, CGRect etc) ivars in my model
objects. I have declared identically named properties for these
scalars and instructed the compiler to synthesize accessor methods
for them. My controller objects add themselves to the model objects
as observers with the keypaths to the scalars. However, I'm not
getting any key-value observing notifications when changes to those
observed properties occur (observeKeyPath... isn't being called at
all).
I feel I may be missing something very simple but I have no idea
what. Any suggestions?
Thanks,
Kiel
_______________________________________________
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