Re: Handling bindings of an NSControl which forward everything to an NSCell?
Re: Handling bindings of an NSControl which forward everything to an NSCell?
- Subject: Re: Handling bindings of an NSControl which forward everything to an NSCell?
- From: Joanna Carter <email@hidden>
- Date: Tue, 11 May 2010 20:51:31 +0100
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 (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