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: aaron smith <email@hidden>
- Date: Tue, 11 May 2010 12:31:22 -0700
Inside of the setter methods it forwards the value to the cell. Here's
a quick snippet:
@implementation GDScale9Button
- (void) setCornerSize:(NSSize) _size {
[[self cell] setCornerSize:_size];
}
- (void) setUpImage:(NSImage *) _image {
[[self cell] setUpImage:_image];
}
- (void) setDownImage:(NSImage *) _image {
[[self cell] setDownImage:_image];
}
@end
Will that still trigger the normal binding behavior?
Thanks Seth!
On Tue, May 11, 2010 at 11:24 AM, Seth Willits <email@hidden> wrote:
> On May 11, 2010, at 11:01 AM, aaron smith wrote:
>
>> Hey, quick question.
>>
>> How does one handle binding with an NSControl which forwards all of
>> it's getters/setters to the NSCell? I've built a custom NSControl and
>> cell, and want to be able to bind to the control, but since everything
>> is forwarded none of the binding mechanisms work correctly.
>
> Forwarded how?
>
>
>
> --
> Seth Willits
>
>
>
> _______________________________________________
>
> 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
>
_______________________________________________
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