• 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: @dynamic and Programmatic Access to Setters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: @dynamic and Programmatic Access to Setters


  • Subject: Re: @dynamic and Programmatic Access to Setters
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 17 Apr 2008 23:21:13 -0700

I've successfully used @dynamic property implementations with CoreData managed-object subclasses. The only limitation I know of is that it only works with object-valued properties, not scalars. But that's not what you're running into.

My guess would be that you're not instantiating the object properly. NSManagedObject does some very, very weird stuff behind the scenes, including swizzling in fake superclasses. Accordingly, you have to let the CoreData factory methods instantiate managed objects: just calling alloc+init won't work.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >@dynamic and Programmatic Access to Setters (From: Mike Rossetti <email@hidden>)

  • Prev by Date: Re: Why is [nil aMessage] a no-op?
  • Next by Date: Re: Mounting AFP Volume using Cocoa
  • Previous by thread: Re: @dynamic and Programmatic Access to Setters
  • Next by thread: Re: Getting My NSTableView Delegate to Respond to Cut:Copy:Paste and Other Messages
  • Index(es):
    • Date
    • Thread