• 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: Changing "MyDocument" to another class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing "MyDocument" to another class


  • Subject: Re: Changing "MyDocument" to another class
  • From: "Erik M. Buck" <email@hidden>
  • Date: Thu, 21 Feb 2002 13:17:11 -0600

You need to change the references to MyDocument in project builder's project
settings.

----- Original Message -----
From: "James Brasure" <email@hidden>
To: <email@hidden>
Sent: Thursday, February 21, 2002 11:38 AM
Subject: Changing "MyDocument" to another class


> Hi Everyone,
>
> When I create a new "Cocoa Document-based Application" with Project
> Builder, it creates a default document class called "MyDocument". I
> would prefer to change the name of this class to something else. Let's
> call it "TestDocument" for now. Unfortunately I can't figure out how to
> make all of the necessary changes. Here are the steps that I took:
>
> * Renamed MyDocument.m to TestDocument.m
>
> * Renamed MyDocument.h to TestDocument.h
>
> * Renamed MyDocument.nib to TestDocument.nib
>
> * Changed all occurrences of MyDocument to TestDocument in the source
> and header files (including the nib name in windowNibName:).
>
> * Opened TestDocument.nib and changed the File Owner to be TestDocument.
>
> * Deleted the MyDocument class from the nib.
>
> * Cleaned the project, rebuilt the project, and ran.
>
> * Every time it launches it reports "Can't create new document".
>
> Hmmm, I must be missing some small detail. However, I scoured the
> project for 20 minutes and can't find any references to MyDocument. I
> even used Sherlock to search all of the file contents for MyDocument. It
> found nothing. Certainly there must be a way to change the name of
> MyDocument.
>
> What am I mising?
>
> TIA,
>
> James Brasure
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Changing "MyDocument" to another class (From: James Brasure <email@hidden>)

  • Prev by Date: Re: NSImageCell and NSTableView
  • Next by Date: Re: Cocoa objects in pthreads
  • Previous by thread: Re: Changing "MyDocument" to another class
  • Next by thread: Re: Changing "MyDocument" to another class
  • Index(es):
    • Date
    • Thread