On Sun, May 10, 2009 at 8:30 PM, Seth Willits <sli...@araelium.com> wrote:
> "You can release the text container because the layout manager retains it,
> and you can release the layout manager because the text storage object
> retains it."

It's fine as long as you don't continue to use the objects directly.
The sample code amounts to this:

id obj1 = [Bar new], obj2 = [Bar new];
[obj1 setFoo:obj2]
[obj2 release];  // All well and good.

[obj2 bazWithQuux:YES];  // NO!  We don't own obj2 anymore.

--Kyle Sluder
_______________________________________________

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

Reply via email to