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 07:57:56 +0200
On Jun 2, 2008, at 2:06 PM, Hamish Allan wrote:
My NSDocument based app loads (imports) PDF files into its documents.
What code are you using to load them?
The actual loading is done like this:
self.masterPDFDocument = [[ANPDFDocument alloc] initWithURL:
absoluteURL];
Although I doubt it would have any influence: Before loading I also
make sure the document ends up in the recent documents menu, since
some trickery is involved to get all the openable files to show up in
that place:
// We want the original doc URL to be added to the recent menu
BEFORE we change the URL to our native file type.
if (! loadedFromBundle) {
[[NSDocumentController sharedDocumentController]
noteNewRecentDocumentURL:[self fileURL]];
}
-António
----------------------------------------------------
There is a world of difference between
searching for happiness and choosing
to be happy.
----------------------------------------------------
_______________________________________________
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