Le 11 mai 2010 à 20:45, Joanna Carter a écrit :

Sorry, the case of the property names is wrong in my code.

Assuming the properties are called cornerSize, upImage and downImage:

- (void) setCornerSize:(NSSize) _size
{
  [self willChangeValueForKey:@"cornerSize"];
  [[self cell] setCornerSize:_size];
  [self didChangeValueForKey:@"cornerSize"];
}
- (void) setUpImage:(NSImage *) _image
{
  [self willChangeValueForKey:@"upImage"];
  [[self cell] setUpImage:_image];
  [self didChangeValueForKey:@"upImage"];
}

- (void) setDownImage:(NSImage *) _image
{
  [self willChangeValueForKey:@"downImage"];
  [[self cell] setDownImage:_image];
  [self didChangeValueForKey:@"downImage"];
}

Joanna

--
Joanna Carter
Carter Consulting

_______________________________________________

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