• 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: 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

  • Follow-Ups:
    • Re: Handling bindings of an NSControl which forward everything to an NSCell?
      • From: Corbin Dunn <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>)
 >Re: 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: Joanna Carter <email@hidden>)

  • Prev by Date: Re: Mouse Drag Ignore.
  • Next by Date: Re: self = [super init], nil?
  • 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