On Jun 8, 2011, at 10:15 AM, Jonathan Taylor wrote:

> The objects are retained and released correctly if I set this property to a 
> new value, or to nil. However when the parent object is deallocated, no 
> release is sent to the latestFrame object. I don't know if this is expected 
> behaviour or not.

It’s expected. Modifiers like @retain only affect synthesized getters/setters; 
they don’t cause invisible code to be added to -dealloc. So if you’re not 
writing a GC-only app, you still need to release these instance variables in 
the dealloc method.

{If you’re in the Mac developer program, you might want to read the What’s New 
In Lion document for some interesting new features along these lines, hint 
hint. But we can’t talk about that stuff here.}

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to