• 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: Programmatic Binding KVC KVO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatic Binding KVC KVO


  • Subject: Re: Programmatic Binding KVC KVO
  • From: Jim Correia <email@hidden>
  • Date: Wed, 4 Nov 2009 16:34:13 -0500

On Nov 4, 2009, at 3:17 PM, Richard Somers wrote:

@interface MyView : NSView
{
    double num;
}
@end

@implementation MyView

- (double)num
{
    return num;
}

- (void)setnum:(double)newNum
{
    [self willChangeValueForKey:@"num"];
    num = newNum;
    [self didChangeValueForKey:@"num"];
}

@end

When the view changes num, it need to push the change to the bound model objects.


See mmalc’s Graphics Bindings sample:

	http://homepage.mac.com/mmalc/CocoaExamples/controllers.html

- Jim

_______________________________________________

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


References: 
 >Programmatic Binding KVC KVO (From: Richard Somers <email@hidden>)
 >Re: Programmatic Binding KVC KVO (From: Kyle Sluder <email@hidden>)
 >Re: Programmatic Binding KVC KVO (From: Richard Somers <email@hidden>)

  • Prev by Date: Re: Programmatic Binding KVC KVO
  • Next by Date: Re: NSPopUpButton, Bindings & separator items
  • Previous by thread: Re: Programmatic Binding KVC KVO
  • Next by thread: NSArrayController inside NSTreeController?
  • Index(es):
    • Date
    • Thread