Re: Load a template file from a Cocoa bundle
Re: Load a template file from a Cocoa bundle
- Subject: Re: Load a template file from a Cocoa bundle
- From: Henry McGilton <email@hidden>
- Date: Sat, 22 Feb 2003 11:15:29 -0800
On Saturday, February 22, 2003, at 09:22 AM, Andy Satori wrote:
I'm certain I'm overlooking something very obvious, but I cannot seem
to see it.
I have a template file that I will want to populate with variables
from my application. NSMutableString has exactly what I need, and
this code works great. Now, I want the template file to exist in the
Cocoa bundle that is my application, Nice and self contained. The
problem is that I cannot figure how to load that path without gross
hacks to find the application path.
What am I missing?
Try this:
[NSBundle mainBundle];
NSBundle contains pretty much all of what you need.
Cheers,
........ Henry
===============================+============================
Henry McGilton | Trilithon Software
Boulevardier, Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden |
http://www.trilithon.com
===============================+============================
_______________________________________________
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.