• 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
Newbie Q : getting rid of MyDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Newbie Q : getting rid of MyDocument


  • Subject: Newbie Q : getting rid of MyDocument
  • From: email@hidden
  • Date: Tue, 13 Jun 2006 10:00:10 +0200 (CEST)
  • Importance: Normal

 Hello all,

 I've trying to make a ``Cocoa Application" copy of a working
``Cocoa Document-based Application".
(two motivations for that : 1) to learn how the NSDocument,
NSController architecture works beyond the basic "MyDocument.h&.m"
tool where everything is already done for you behind the scenes, and

2) better reusability : an ordinary .h,.m or .nib file can be
copied and put in another project in two or three clicks, using
"Add In Project", but MyDocument is a ``reserved keyword" in
Cocoa Document-based Applications, and
MyDocument.h,.m & .nib cannot be moved or copied that directly.)

 So I created fresh new files YourDocument.h,.m,&.nib (YourDocument is
a subclass of NSDocument) in the new
project, and copied all the code, view data and connections. The
new project builds without problem, but I don't know what to do next :
where and how do I tell the application to launch YourDocument.nib
when the application is opened ?

                                                                        Ewan



 _______________________________________________
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: Newbie Q : getting rid of MyDocument
      • From: Sean Murphy <email@hidden>
  • Prev by Date: Re: Launch another app without losing focus
  • Next by Date: create a file appending data
  • Previous by thread: Refresh problem
  • Next by thread: Re: Newbie Q : getting rid of MyDocument
  • Index(es):
    • Date
    • Thread