• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Handling bindings of an NSControl which forward everything to an NSCell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Handling bindings of an NSControl which forward everything to an NSCell?
      • From: Joanna Carter <email@hidden>
    • Re: Handling bindings of an NSControl which forward everything to an NSCell?
      • From: Seth Willits <email@hidden>
References: 
 >Handling bindings of an NSControl which forward everything to an NSCell? (From: aaron smith <email@hidden>)
 >Re: Handling bindings of an NSControl which forward everything to an NSCell? (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: Mouse Drag Ignore.
  • Next by Date: Re: Handling bindings of an NSControl which forward everything to an NSCell?
  • Previous by thread: Re: Handling bindings of an NSControl which forward everything to an NSCell?
  • Next by thread: Re: Handling bindings of an NSControl which forward everything to an NSCell?
  • Index(es):
    • Date
    • Thread