Re: problem unit testing core data
Re: problem unit testing core data
- Subject: Re: problem unit testing core data
- From: Tim Hart <email@hidden>
- Date: Wed, 26 Oct 2005 11:36:44 -0500
On Wednesday, October 26, 2005, at 10:45AM, Jesse Grosjean <email@hidden> wrote:
>> You do not retain a copy of the document variable in your setup
>> routine, yet you release it in your teardown routine. That's the
>> problem.
>
>I think I'm retaining the document in the setup method, it is tacked
>onto the end of this line:
>
> document = [[[NSDocumentController sharedDocumentController]
>openNewDocumentAndSaveAs:[NSURL fileURLWithPath:path] display:NO
>error:nil] retain];
You're right. My apologies. I didn't check the source carefully enough.
Tim Hart
_______________________________________________
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