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 (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