Re: cocoa-dev digest, Vol 2 #4105 - 16 msgs
Re: cocoa-dev digest, Vol 2 #4105 - 16 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #4105 - 16 msgs
- From: Renaud Boisjoly <email@hidden>
- Date: Wed, 28 Apr 2004 15:09:05 -0400
Thanks Tony, I'm sending the messages to self like this:
- init
{
if (self = [super init]) {
//Define default values...
NSLog(@"Init MCTask");
[self willChangeValueForKey:@"weekdays"];
[self setWeekdays:[NSMutableArray
arrayWithObjects:@"Sunday",@"Monday",@"Tuesday",nil]];
[self didChangeValueForKey:@"weekdays"];
//[self setWeekdays:[NSMutableArray arrayWithObject:[[self
allWeekdays] objectAtIndex:2]];
NSLog(@"weekdays at init: %@",[self weekdays]);
}
return self;
}
But its not working either...
thanks for your tip
- Renaud
On Apr 28, 2004, at 1:53 PM, email@hidden wrote:
I'm still getting the hang of the bindings, but I had a similar problem
that was solved by manually notifying the array "observer" (i.e. your
controller). Try "bracketing" your array updates with calls to:
willChange:valuesAtIndexes:forKey:
and
didChange:valuesAtIndexes:forKey:.
It may be that your controller just doesn't know that it's source data
has changed. Anyway, that worked for me.
_______________________________________________
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.