Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-30-2009, 09:35 AM   #21 (permalink)
jeffelkins
New Member
 
Join Date: Jan 2009
Posts: 73
jeffelkins is on a distinguished road
Default

Quote:
Originally Posted by PhoneyDeveloper View Post
I assume you meant bundlePath. [NSBundle mainBundle] is a singleton that refers to the main bundle of your app. On iPhone OS you can only have a single bundle but on MacOS its possible to have multiple bundles inside the main bundle and in fact you can load bundles from arbitrary paths. That's what bundleWithPath would do but it's obviously of no purpose on iPhone OS.

bundlePath, resourcePath and the related methods give you full paths to those directories. I'm not sure if the pathForResource methods will give you a path to a folder inside the bundle dir. They might. If they don't then you can build a path starting with mainBundle and using the methods in NSPathUtilities.h like stringByAppendingPathComponent.
Thanks for your response.
jeffelkins is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,633
Threads: 94,090
Posts: 402,803
Top Poster: BrianSlick (7,990)
Welcome to our newest member, nor9849
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:14 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.