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.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com