Problems renaming MyDocument in cocoa document-based app
Problems renaming MyDocument in cocoa document-based app
- Subject: Problems renaming MyDocument in cocoa document-based app
- From: Ben Golding <email@hidden>
- Date: Wed, 13 May 2009 15:41:38 +1000
I must have overlooked something really simple but I'm stumped about
finding what it is.
In short, when I try renaming the MyDocument in my app, I get the
error message:
2009-05-13 15:33:35.304 YourDocument[2097:10b] -[NSWindowController
loadWindow]: failed to load window nib file 'YourDocument'.
I've managed to replicate the problem with the following steps:
1. Create new coca document-based app, call it "YourDocument"
2. Change MyDocument.m -windowNibName to return "YourDocument"
3. Rename MyDocument.[mh] to YourDocument.[mh]
4. Rename class MyDocument to YourDocument in YourDocument.[mh]
5. Go to Target>YourDocument, get info, properties, change doc type to
YourDocument
6. Rename MyDocument.xib to YourDocument.xib
7. Open YourDocument.xib in IB, change File's Owner class to
YourDocument
8. Build and Go
9. Note error in console log
Also, when I change the xib's name in step 6, I notice that Xcode no
longer seems to recognise the file as an IB document, it displays the
XML in the file content window and double clicking on it doesn't open
IB. I have to right-click and use "open with Finder" to get it to
open with IB.
I notice that in the application bundle, in Resources/English.lproj,
there is YourDocument.xib but no YourDocument.nib; there is a
MainMenu.nib. That makes me wonder whether ibtool is being run
correctly.
Thanks,
Ben.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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