• 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: Synthesized properties for scalars not KVO compliant
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Synthesized properties for scalars not KVO compliant (From: Kiel Gillard <email@hidden>)

  • Prev by Date: Re: Cocoa event handling in fullscreen
  • Next by Date: Re: Bindings and KVO of View objects
  • Previous by thread: Synthesized properties for scalars not KVO compliant
  • Next by thread: Re: Synthesized properties for scalars not KVO compliant
  • Index(es):
    • Date
    • Thread