Re: Debugging Bindings
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