In article
<Pine.LNX.4.44.0401142030410.26941-100000@kern.srcf.societies.cam.ac.uk>
,
> > I'm trying to add a menu bar that I've created in Project Builder and
> > stored as a .nib file to my Codewarrior project.
[quoted text clipped - 7 lines]
> part of the "real" nib) to your resources folder (in the appropriate
> language folder if necessary).
I'm not sure what you mean by "my resources folder". There are hundreds
of "resources" folders on my computer. Which one do you mean?
Also, I'm not sure I want to add a .nib file to some remote folder not
associated with my Codewarrior project. It seems very cluttered to have
a folder full of nib files from various projects all in a remote
location not associated with their projects.
Somewhere down the road that file is going to get lost. I'd rather keep
it in the same folder as my project, or better still, add it to my
project.
CT
Charles Thomas - 14 Jan 2004 21:46 GMT
> In article
> <Pine.LNX.4.44.0401142030410.26941-100000@kern.srcf.societies.cam.ac.uk>
[quoted text clipped - 14 lines]
> I'm not sure what you mean by "my resources folder". There are hundreds
> of "resources" folders on my computer. Which one do you mean?
Never mind. The application package contents:resources folder.
This works fine. Many thanks!
CT
Jøhnny Fävòrítê (it means "genetic antagonism") - 14 Jan 2004 21:52 GMT
> I'm not sure what you mean by "my resources folder". There are
> hundreds of "resources" folders on my computer. Which one do you
[quoted text clipped - 4 lines]
> have a folder full of nib files from various projects all in a remote
> location not associated with their projects.
there will be a resources folder somewhere inside your project folder.
that resources folder gets copied inside your application bundle at the
time the app is built/linked. it has to, because the app's .nibs are
needed at runtime. if they're not there, the app won't work.
given what you wrote above, i'm guessing you don't know that what looks
like an application when viewed in the finder is really a folder with
some special properties. it's called a bundle. it contains the app's
binary executable and all its resources, like strings files, icons, and
nibs. bundles are used for other things besides just packaging
applications.
> Somewhere down the road that file is going to get lost.
no it won't, because your app won't run without it.
an app's .nibs are accessible by end users, which has given rise to a
whole new class of app-hacking. recently i ran across a hack for
netnewswire that rearranges the panes in its main window.
Frederick Cheung - 14 Jan 2004 22:05 GMT
> In article
> <Pine.LNX.4.44.0401142030410.26941-100000@kern.srcf.societies.cam.ac.uk>
[quoted text clipped - 14 lines]
> I'm not sure what you mean by "my resources folder". There are hundreds
> of "resources" folders on my computer. Which one do you mean?
If your application is bundled, then it has a Resources folder as part of
its bundle. If not, then you can put the nib wherever you want.
In any case, nibs are not built into the application in the same way that
a resource file is.
Fred
> Also, I'm not sure I want to add a .nib file to some remote folder not
> associated with my Codewarrior project. It seems very cluttered to have
[quoted text clipped - 6 lines]
>
> CT