Re: 2 questions
Re: 2 questions
- Subject: Re: 2 questions
- From: Robert Marini <email@hidden>
- Date: Sun, 11 Jan 2009 12:56:21 -0500
You have lost me...but I will keep it in mind for later. What I do
know is that if I step through the code, **that line** is never
returned to, so the admonition that once "Return" is invoked,
nothing further will be done is advice well taken.
You should review the memory management guide for Cocoa. In essence,
you are creating an instance of myclassB and returning it. Once the
return line is executed that method ceases being executed and so the
release message to myB is never invoked. More appropriately would be
to call something like
return [myB autorelease];
-rob.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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