Re: Strange NSManagedObjectContextObjectsDidChangeNotification behavior
Re: Strange NSManagedObjectContextObjectsDidChangeNotification behavior
- Subject: Re: Strange NSManagedObjectContextObjectsDidChangeNotification behavior
- From: Karolis Ramanauskas <email@hidden>
- Date: Tue, 24 Feb 2009 23:17:33 -0600
OK, I managed to replicate my problem in this example project:
http://strangeinversion.com/weird.zip
If you are interested download it, only 44KB. It contains two core data
entities: BigBagOfFruit and Fruit.
1. Run the program
2. Add a bag
3. Now add some fruit in it ;)
4. Move your mouse around the window and look at your console:
NSManagedObjectContextObjectsDidChangeNotification get called all the
time...
5. Go to fruit class, comment out: [self setName:@"Banana"];
6. Repeat 1 through 4, problem is gone.
That's what I noticed in my program, whenever there is ANY SETTER within the
draw method that is called from MyView's drawRect, I get this behavior.
Any thoughts?
Thanks a lot.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden