• 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: NSDocument setFileName - File Must Exist?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument setFileName - File Must Exist?


  • Subject: Re: NSDocument setFileName - File Must Exist?
  • From: Sherm Pendley <email@hidden>
  • Date: Thu, 3 Feb 2005 04:33:40 -0500

On Feb 2, 2005, at 8:35 PM, Seth Willits wrote:

On Feb 2, 2005, at 1:42 PM, Sherm Pendley wrote:

On Jan 31, 2005, at 1:07 AM, Seth Willits wrote:

In an attempt to replicate a feature similar to Xcode's New Project window, I used NSDocumentController's makeUntitledDocumentOfType: method to create a new document instance

I don't think that's what Xcode is doing - notice that it's impossible to create an unnamed project. I think it's creating a new blank project folder and then using one of the -openDocument... methods to open it.

But then one would need to write code to create a document in some place other than the document class itself, no?

Not necessarily - you could simply make a copy of a template document, maybe doing some simple text substitutions, like Xcode does. You could give your users a lot of flexibility that way too, by allowing them to store any document they create in the template folder.


sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

_______________________________________________
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


  • Follow-Ups:
    • Re: NSDocument setFileName - File Must Exist?
      • From: Seth Willits <email@hidden>
References: 
 >Re: NSDocument setFileName - File Must Exist? (From: Sherm Pendley <email@hidden>)
 >Re: NSDocument setFileName - File Must Exist? (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: Newbie advice
  • Next by Date: String not showing up in Table
  • Previous by thread: Re: NSDocument setFileName - File Must Exist?
  • Next by thread: Re: NSDocument setFileName - File Must Exist?
  • Index(es):
    • Date
    • Thread