Re: Changing "MyDocument" to another class
Re: Changing "MyDocument" to another class
- Subject: Re: Changing "MyDocument" to another class
- From: "Clark S. Cox III" <email@hidden>
- Date: Thu, 21 Feb 2002 13:36:57 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday, February 21, 2002, at 12:38 , James Brasure wrote:
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.
Make sure, that under the "Application Settings" tab of your target,
you have changed your document types (5th section down) to use
TestDocument as their class instead of MyDocument.
- --
Clark S. Cox, III
email@hidden
http://www.whereismyhead.com/clark/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see
http://www.gnupg.org
iD8DBQE8dT5Pd6STocYT1xURAkVwAKCdfLtuh8i2l2EziDikw7gY7QX9hgCghFbI
u1L1XE5N2io9zbU7qegHSM8=
=6q0L
-----END PGP SIGNATURE-----
_______________________________________________
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.