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

Re: Debugging Bindings


  • Subject: Re: Debugging Bindings
  • From: David Olbersen <email@hidden>
  • Date: Fri, 28 Jan 2005 10:31:47 -0800

On Jan 28, 2005, at 8:34 AM, Guy English wrote:

        NSMutableArray *tempRobots = robots;
        [tempRobots addObject:newRobot];
     [self setRobots:tempRobots];
and that works just fine.
Well ok ...

but it should be ...

[self willChangeValueForKey: @"robots"];
[robots addObject: newRobot];
[self didChangeValueForKey: @"robots"];

Oh well that's even better!

Really, I'm quite new to all this in general. First Cocoa App, first time using Objective C, first try at bindings. I'm bound to make lots of stupid mistakes and not even know which docs to read!

Thanks for your help!

--
David Olbersen

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Debugging Bindings
      • From: Guy English <email@hidden>
References: 
 >Debugging Bindings (From: David Olbersen <email@hidden>)
 >Re: Debugging Bindings (From: David Olbersen <email@hidden>)
 >Re: Debugging Bindings (From: Guy English <email@hidden>)

  • Prev by Date: Re: Debugging Bindings
  • Next by Date: 2 NSDocuments with nib and info.plist problem
  • Previous by thread: Re: Debugging Bindings
  • Next by thread: Re: Debugging Bindings
  • Index(es):
    • Date
    • Thread