• 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 Managed Context Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange Managed Context Error


  • Subject: Re: Strange Managed Context Error
  • From: mmalcolm crawford <email@hidden>
  • Date: Sun, 21 Aug 2005 11:15:22 -0700


On Aug 21, 2005, at 9:51 AM, Colin Cornaby wrote:

The NSPersistentDocument's init:
- (id)init
{
self = [super init];
if (self != nil) {
//Initialize the data for the document. A MyManagedObjectContext is a NSManagedObjectContext subclass
//so we can directly interface to CoreData. We can also set the MyManagedObjectContext as this persistent
//document's object context
MyManagedObjectContext *documentContext = [[MyManagedObjectContext alloc] init];
[self setManagedObjectContext: documentContext];

[Aside: This is another leak. [documentContext release]; ]
    }
    return self;
}

There isn't anything in what you've described so far that should give rise to the error message you report. To check, I created a framework etc. following your description, and I don't see the message. What other configuration are you doing?


mmalc

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Strange Managed Context Error
      • From: mmalcolm crawford <email@hidden>
References: 
 >Strange Managed Context Error (From: Colin Cornaby <email@hidden>)
 >Re: Strange Managed Context Error (From: mmalcolm crawford <email@hidden>)
 >Re: Strange Managed Context Error (From: Colin Cornaby <email@hidden>)
 >Re: Strange Managed Context Error (From: mmalcolm crawford <email@hidden>)
 >Re: Strange Managed Context Error (From: Colin Cornaby <email@hidden>)
 >Re: Strange Managed Context Error (From: mmalcolm crawford <email@hidden>)
 >Re: Strange Managed Context Error (From: Colin Cornaby <email@hidden>)

  • Prev by Date: Re: How to make sure that particular item is visible in NSOutlineView
  • Next by Date: Re: Strange Managed Context Error
  • Previous by thread: Re: Strange Managed Context Error
  • Next by thread: Re: Strange Managed Context Error
  • Index(es):
    • Date
    • Thread