• 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: Strange NSManagedObjectContextObjectsDidChangeNotification behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Strange NSManagedObjectContextObjectsDidChangeNotification behavior
      • From: Jerry Krinock <email@hidden>
References: 
 >Strange NSManagedObjectContextObjectsDidChangeNotification behavior (From: Karolis Ramanauskas <email@hidden>)
 >Re: Strange NSManagedObjectContextObjectsDidChangeNotification behavior (From: Jerry Krinock <email@hidden>)
 >Re: Strange NSManagedObjectContextObjectsDidChangeNotification behavior (From: Dave Fernandes <email@hidden>)

  • Prev by Date: plug-in
  • Next by Date: Re: Adding text to NSImage using lockFocus/unlockFocus not working
  • Previous by thread: Re: Strange NSManagedObjectContextObjectsDidChangeNotification behavior
  • Next by thread: Re: Strange NSManagedObjectContextObjectsDidChangeNotification behavior
  • Index(es):
    • Date
    • Thread