• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: File still in use after closing document window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: File still in use after closing document window
      • From: Bill Bumgarner <email@hidden>
References: 
 >File still in use after closing document window (From: Antonio Nunes <email@hidden>)
 >Re: File still in use after closing document window (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: Re: Hillegass book memory question
  • Next by Date: CoreData file format stability
  • Previous by thread: Re: File still in use after closing document window
  • Next by thread: Re: File still in use after closing document window
  • Index(es):
    • Date
    • Thread