• 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: check if app opens with a document on startup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: check if app opens with a document on startup


  • Subject: Re: check if app opens with a document on startup
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 24 May 2008 16:55:21 -0700


On 23 May '08, at 9:12 AM, Torsten Curdt wrote:

Hm ...somehow missed that response. But got it working myself. It's actually much simpler:

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
int documentCount = [[[NSDocumentController sharedDocumentController] documents] count];

Of course that only works if (a) you're using NSDocument to open all files, and (b) all the open-file requests actually succeeded in opening documents.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >check if app opens with a document on startup (From: Torsten Curdt <email@hidden>)
 >Re: check if app opens with a document on startup (From: Jens Alfke <email@hidden>)
 >Re: check if app opens with a document on startup (From: John Stiles <email@hidden>)
 >Re: check if app opens with a document on startup (From: Torsten Curdt <email@hidden>)

  • Prev by Date: Re: Quit iTunes
  • Next by Date: Re: how to override image cell display in IKImageBroserView?
  • Previous by thread: Re: check if app opens with a document on startup
  • Next by thread: Conceptual MVC Help
  • Index(es):
    • Date
    • Thread