Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Memory issue on loading a saved file



Also, your call

	NSLog(@"myArray is %@", myArray);

should be

	NSLog(@"myArray is %@", [myArray description]);

_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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Core Data Memory issue on loading a saved file (From: "Andrew R. Kinnie" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.