• 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: NSMutableArrayForKeyPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableArrayForKeyPath


  • Subject: Re: NSMutableArrayForKeyPath
  • From: Alan Donsky <email@hidden>
  • Date: Thu, 18 Mar 2004 23:24:48 -0600

My NSView custom subclass overwrites bind: as follows:

-(void) bind:(NSString *) binding toObject:(id) object
withKeyPath:(NSString *) keyPath options:(NSDictionary *) d
{
[super bind:binding toObject:object withKeyPath:keyPath
options:nil];

controller = [object retain];
controllerKeyPath = [keyPath retain];
}


calling super binds the view to the controller so that changes in the
model are reflected with changes in the view.

I am using (void)textDidChange: so that i can change the model when the
user changes the view.

alan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSMutableArrayForKeyPath
      • From: Allan Odgaard <email@hidden>
References: 
 >NSMutableArrayForKeyPath (From: Alan Donsky <email@hidden>)

  • Prev by Date: Re: Quitting screensavers programmatically
  • Next by Date: key combinations while the screen is captured
  • Previous by thread: NSMutableArrayForKeyPath
  • Next by thread: Re: NSMutableArrayForKeyPath
  • Index(es):
    • Date
    • Thread