• 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: Saving a core data model to persistent store makes application hang
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving a core data model to persistent store makes application hang


  • Subject: Re: Saving a core data model to persistent store makes application hang
  • From: Jim Correia <email@hidden>
  • Date: Sun, 26 Nov 2006 17:07:13 -0500

On Nov 26, 2006, at 3:36 PM, Bill Bumgarner wrote:

After this it simply keeps repeating. So there seems to be nothing wrong with the relations, at least, it only requests the parent relation. But why would it keep on looping over that one object?

These 6 lines keep repeating? That would indicate that there is something in your code that triggers a change notificaiton that triggers a subsequent change that causes another notification ad nauseum.

The original code Remco posted had a -willSave with the following implementation:


- (void)willSave {
	[self setValue:NSStringFromRect(bounds) forKey:@"boundsAsString"];
	[super willSave];
}

-willSave is allowed to have side effects, but it must use the primitive accessors to avoid generating additional change notifications.

http://www.cocoabuilder.com/archive/message/cocoa/2005/5/2/134506

Jim

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Saving a core data model to persistent store makes application hang (From: Remco Poelstra <email@hidden>)
 >Re: Saving a core data model to persistent store makes application hang (From: Bill Bumgarner <email@hidden>)
 >Re: Saving a core data model to persistent store makes application hang (From: Bill Bumgarner <email@hidden>)
 >Re: Saving a core data model to persistent store makes application hang (From: Remco Poelstra <email@hidden>)
 >Re: Saving a core data model to persistent store makes application hang (From: Bill Bumgarner <email@hidden>)

  • Prev by Date: Re: Cocoa objects in Quartz Composer
  • Next by Date: [Solved] Re: Saving a core data model to persistent store makes application hang
  • Previous by thread: Re: Saving a core data model to persistent store makes application hang
  • Next by thread: [Solved] Re: Saving a core data model to persistent store makes application hang
  • Index(es):
    • Date
    • Thread