Re: Problem loading Nib
Re: Problem loading Nib
- Subject: Re: Problem loading Nib
- From: Jon Hess <email@hidden>
- Date: Wed, 31 Oct 2007 11:59:42 -0700
Hey Alexander -
I would guess that the file type in Xcode has changed from 'file.xib'
to 'text.xml'. Xcode associates a type with each file and uses that
type to decide how to build the file. If the type for the file was
switched from file.xib to text.xml that would explain it opening in
the Xcode editor when double clicked. I would also guess that if you
went into your built application with terminal you would see a
MainMenu.xib file instead of a MainMenu.nib file. Instead of compiling
the xib to a nib, xcode is probably just copying it straight across
because it is confused and thinks it is just an XML document.
You can change the file type associated with a file in Xcode by
selecting it and then choosing 'get info'.
Good Luck -
Jon Hess
On Oct 31, 2007, at 6:13 AM, Alexander Cohen wrote:
Hi,
Just got up this morning and ran a project of mine that was running
fine last night, and im getting a weird error:
Unable to load nib file: MainMenu, exiting
The nib is in the project in resources, it's not red so xCode can
find it. I also checked to make sure it was on disk, and its there.
Funny thing, when i double click it in xCode, it opens up as a xml
document in a xCode editor. If i double click it in the finder, it
opens up in Interface Builder. Interface builder says all is go for
this nib file. Also, seems like all my other nibs are acting up the
same way.
Any ideas?
thanks
AC
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
@mac.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden