Design Element
Comment on "A Quick Objective-C 2.0 Tutorial: Part II"
by Drew McCormack — Nov 04

I am a bit confused about the use of @dynamic. Your Movie example above seems to imply that if I create an NSManagedObject, which has an attribute title, and then use the property declaration prescribed, that I will be able to then then this

movie = [Movie new];
[movie setTitle:@"The Hudsucker Proxy"];

and everything will work out. Well, I tried it to make sure, and it compiles fine, but the method setTitle: does not exist at run time, and an exception is the result.

Am I missing something?


Back to "A Quick Objective-C 2.0 Tutorial: Part II"
Design Element

Copyright © Scott Stevenson 2004-2015