On 5 Apr 2010, at 04:09, Jenny M wrote:

This is the method I ended up going with. I had tried to use bindings
before by doing exactly that - setting up a property, synthesizing it,
and binding the value to the property - but I noticed I was setting
the value wrong. I was calling
  property = [NSNumber...]
rather than
  [self setProperty:[]]. <-- Finally, that worked!!


Setting of properties can and should be done this way (except when using the modern runtime and synthesizing the instance variable):

self.property = ...

which is equivalent to [self setProperty: ...]

Klaus

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to