Re: Core Data Memory issue on loading a saved file - Solved
Re: Core Data Memory issue on loading a saved file - Solved
- Subject: Re: Core Data Memory issue on loading a saved file - Solved
- From: "Andrew R. Kinnie" <email@hidden>
- Date: Fri, 30 Mar 2007 19:46:51 -0400
Yep. I missed that. That did it, thanks a bunch.
As far as the NSLog statement is concerned, I wasn't having a problem
with that. I was under the impression that sending an object
(myArray) into a string like that was synonymous with calling
description on it as in [myArray description]
Is there a reason simply sending the object is a bad idea?
Andrew
On Mar 30, 2007, at 6:59 PM, Murat Konar wrote:
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.
On Mar 30, 2007, at 7:04 PM, Murat Konar wrote:
Also, your call
NSLog(@"myArray is %@", myArray);
should be
NSLog(@"myArray is %@", [myArray description]);
_murat
_______________________________________________
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