Re: trouble after changing the name of a unit
Re: trouble after changing the name of a unit
- Subject: Re: trouble after changing the name of a unit
- From: Mark Patterson <email@hidden>
- Date: Mon, 15 Nov 2004 10:20:54 +1000
On 15/11/2004, at 3:37, Agent M wrote:
You need to look in Info.plist and change these lines:
<key>NSDocumentClass</key>
<string>MyDocument</string>
The value needs to be the name of your document class. Good luck.
Thanks! That helped. I then had to change this from saying
@"MyDocument":
- (NSString *)windowNibName
{
return @"HtmlDocument";
}
It runs now!
On Nov 14, 2004, at 6:51 AM, Mark Patterson wrote:
I am working on a Cocoa project to do some standard mods to html
files, sort of as a learning experience. I was doing it as a document
based app. The name it gave to the files was just the default
MyDocument and the same name was used for the class and the nib. I
decided after a while to rename it to HtmlDocument, by doing save as
in XCode and InterfaceBuilder, and changing the class in the nib. But
when I run it now I get an alert "New Can't create new document.
OK". Well, it's not OK really, but I had to vote anyway. I would like
to be able to rename things from time to time without recreating the
whole project.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden