Re: Core Data Memory issue on loading a saved file
Re: Core Data Memory issue on loading a saved file
- Subject: Re: Core Data Memory issue on loading a saved file
- From: Murat Konar <email@hidden>
- Date: Fri, 30 Mar 2007 15:59:02 -0700
The last argument in your call to [NSArray arrayWithObjects:] should
be nil.
_murat
On Mar 30, 2007, at 3:51 PM, Andrew R. Kinnie wrote:
Sure, here is the code from the init method in myDocument:
- (id)init
{
self = [super init];
if (self != nil) {
// initialization code
myArray = [[NSArray arrayWithObjects:@"lowest", @"low",
@"medium", @"high",
@"highest"] retain];
NSLog(@"myArray is %@", myArray);
}
return self;
}
I previously didn't retain the created array, and added it because
I guessed that was a problem. However, adding it appears to have
had no effect at all.
_______________________________________________
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