• 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: cocoa-dev digest, Vol 2 #4105 - 16 msgs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Panel items failing to draw
  • Next by Date: Re: NSMutableDictionary <-- setter method
  • Previous by thread: Re: Panel items failing to draw
  • Next by thread: Failed Dictionary Search yields Signal 10 (SIGBUS) when all I want is a nil.
  • Index(es):
    • Date
    • Thread