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

Synthesized properties for scalars not KVO compliant


  • Subject: Synthesized properties for scalars not KVO compliant
  • From: Kiel Gillard <email@hidden>
  • Date: Wed, 20 May 2009 09:52:21 +1000

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


  • Follow-Ups:
    • Re: Synthesized properties for scalars not KVO compliant
      • From: Andy Lee <email@hidden>
    • Re: Synthesized properties for scalars not KVO compliant
      • From: Jerry Krinock <email@hidden>
    • Re: Synthesized properties for scalars not KVO compliant
      • From: Kiel Gillard <email@hidden>
  • Prev by Date: Re: Programatically set file URL of Core Data Document?
  • Next by Date: Re: Cocoa event handling in fullscreen
  • Previous by thread: Re: Better to chain key path dependencies, or list explicitly?
  • Next by thread: Re: Synthesized properties for scalars not KVO compliant
  • Index(es):
    • Date
    • Thread