Re: autorelease problem
Re: autorelease problem
- Subject: Re: autorelease problem
- From: Shawn Erickson <email@hidden>
- Date: Mon, 26 Jan 2009 09:50:36 -0800
On Mon, Jan 26, 2009 at 9:40 AM, Nick Rogers <email@hidden> wrote:
> hi,
> thanks for the reply.
> someString in the method suggestedRepeat....... is an NSMutableString
> allocated and initialized within that method.
How is it allocated? Please show that code. What about someDir?
>- (NSString*)suggestedRepeatFileName:(NSString *)fileName inDir:(HDIR *)dir
>{
> // some code here
Please show the code.
> - (void)setFileName:(NSString *)name
> {
> name = [name copy];
> [fileName release];
> fileName = name;
> }
Looks OK.
Try using NSZombie since it sounds like you are over releasing something.
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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