Re: Problems renaming MyDocument in cocoa document-based app
Re: Problems renaming MyDocument in cocoa document-based app
- Subject: Re: Problems renaming MyDocument in cocoa document-based app
- From: Jeffrey Oleander <email@hidden>
- Date: Wed, 13 May 2009 09:41:25 -0700 (PDT)
> On Wed, 2009/05/13, Ben Golding <email@hidden> wrote:
> From: Ben Golding <email@hidden>
> Subject: Problems renaming MyDocument in cocoa document-based app
> To: "Xcode Users" <email@hidden>
> Date: Wednesday, 2009 May 13, 12:41
>
> 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
Did you rename them from within Xcode?
_______________________________________________
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