• 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: Open MyDocument from MainMenu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Open MyDocument from MainMenu


  • Subject: Re: Open MyDocument from MainMenu
  • From: "Kirt Cathey" <email@hidden>
  • Date: Fri, 18 Mar 2005 02:08:36 +0000

Finally found a snippet that answered my question.....
here it is:

If the file already exists at path --
[[NSDocumentController sharedDocumentController] openDocumentWithContentsOfFile:openProjectString display:YES];


If the file does not exist at path --
[[NSDocumentController sharedDocumentController] newDocument:nil];


Thanks for the help....

From the desk of ..........
                   Barking Frog
email: email@hidden



From: todd ransom <email@hidden>
To: Kirt Cathey <email@hidden>
CC: email@hidden
Subject: Re: Open MyDocument from MainMenu
Date: Thu, 17 Mar 2005 08:52:05 -0700

Look at NSDocumentController's

openDocumentWithContentsOfFile:display:

TR

On Mar 16, 2005, at 9:40 PM, Kirt Cathey wrote:

Hi All!

I have seen this question before when trolling through the web and Apple archives, but have not had any luck when searching to retrieve the information.

I have a list of projects listed when a user starts the application listed in a MainMenu startup window. When the user double-clicks on an application listed in the table, I want that related MyDocument to open.

I have the double-click work and the NSString getting ciphered from the array of projects etc...., I just want to know how to open that document. The NSApp/openDocument method gives me an invalid identifier error, and NSWorkspace opens another instance of the application I am building.

Any suggestions/ideas?

Thank you,

From the desk of ..........
                   Barking Frog
email: email@hidden

_________________________________________________________________
MSN Hotmailで開運メルアド占い実施中 http://promotion.msn.co.jp/hotmail/fortune/input_un.asp
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


_________________________________________________________________
MSN Hotmailで開運メルアド占い実施中 http://promotion.msn.co.jp/hotmail/fortune/input_un.asp


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Open MyDocument from MainMenu (From: todd ransom <email@hidden>)

  • Prev by Date: Re: Getting notified when a document closes
  • Next by Date: Mouse Cursor Does Not Always Unhide
  • Previous by thread: Re: Open MyDocument from MainMenu
  • Next by thread: Two questions about NSCalendarDate
  • Index(es):
    • Date
    • Thread