Re: File still in use after closing document window
Re: File still in use after closing document window
- Subject: Re: File still in use after closing document window
- From: Antonio Nunes <email@hidden>
- Date: Tue, 3 Jun 2008 08:56:26 +0200
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 (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