Re: How to automatically include a nib file from a framework
Re: How to automatically include a nib file from a framework
- Subject: Re: How to automatically include a nib file from a framework
- From: Nate Friedman <email@hidden>
- Date: Mon, 26 Apr 2004 07:26:09 -0700
twas 4/26/04 2:08 AM, when John Karp at email@hidden treated us all
with:
> Hi, I compiled a framework, which contains a nib file that will be used by
> some classes. So far I have to manually add the nib file to any project in
> which I added the framework, otherwise during runtime it will complain it
> cannot filnd the nib file. Is there a way to tell xcode to look for nib
> file in linked frameworks?
>
> Thanks in advance
>
[NSBundle loadNibNamed:@"NFVersionChecker" owner: self];
The line above seems to be working fine in NFVersionChecker2, which is a
framework I did a few months ago. I could swear I had a longer line there,
but when I popped open the source, that9s what I got...
After poking around at some other source of mine, I found the following
witch is used for loading bundle resources, excluding nibs, in a screensaver
I wrote more recently.
[NSBundle bundleForClass:[self class]]
You might try both
- Nate
--
Side effects of using Microsoft Windows have been headache, nausea, broken
bones, asthma and are similar to the sugar pill. Women who are pregnant or
might be pregnant should not use Microsoft Windows. Please consult with a
medical professional before deciding to use Microsoft Windows. See our ad on
MSNBC.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.