Re: creating folders inside the main bundle
Re: creating folders inside the main bundle
- Subject: Re: creating folders inside the main bundle
- From: Roarke Lynch <email@hidden>
- Date: Sun, 21 Jul 2002 11:37:13 -0400
I tried this out, but PB runs the shell script before the app main
bundle is built. But this brings up two questions for me:
(1)When you rebuild an app (without cleaning the target) does PB build
the project atomically?
I would assume that this is case b/c when rebuilt this mkdir script does
not create the directory in the pre-existing app.app directory
(2)Is there a way to assign a build script to after the main bundle is
built?
concerning my first query though, in PB when you expand the app.app in
the products folder, there are two default folders within in, MacOS and
resources. I am wondering if it is possible to add a folder that is
visible within PB's products folder.
Roarke Lynch
-------------------------------
email@hidden
I don't know if this is the *right* way to do this, but you should be
able to add a shell script build phase which does something like:
mkdir $TARGET_BUILD_DIR/yourApp.app/Contents/Plugins
Hope this helps.
Gideon.
On Sunday, July 21, 2002, at 01:11 PM, Roarke Lynch wrote:
I am in the process of making my current application dynamically load
plugins that I can later develop for it. I can load them just fine but
I am stuck on one tiny detail. You can call [[NSBundle mainBundle]
pathForBuiltInPlugIns] to get app.app\contents\PlugIns by default but
when you build the project this directory does not atomatically exist.
Now i suppose i could make the app dynamically generate this directory
when the app launches easy enough, but I would rather have this
directory always exist, i.e i want to be able to create a custom
folder within my app's mainBundle. How the hell do you do it in PB?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.