On Jun 3, 2008, at 8:46 AM, Bill Bumgarner wrote:

The actual loading is done like this:

self.masterPDFDocument = [[ANPDFDocument alloc] initWithURL: absoluteURL];

If your -setMasterPDFDocument: -- synthesized or manually written -- follows traditional reatain/release rules, the above will result in the ANPDFDocument being over-retained.

The masterPDFDocument ivar is indeed a synthesized property, but the app is garbage collected, so I would expect the reference to be collected shortly after its host document is closed.

António

-----------------------------------------
Forgiveness is not an occasional act;
it is a permanent attitude.

--Martin Luther King, Jr
-----------------------------------------




_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to