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 09-26-2010, 11:10 PM   #6 (permalink)
mesohorny
Banned
 
Join Date: Jan 2009
Posts: 69
mesohorny is on a distinguished road
Default

If you read the docs carefully you will see that inDirectory is actually used to load resources from another app bundle.

Thing is: you can just put your resources in subdirectories, but you do not specify this when you get the path. Just use something like:

[[NSBundle mainBundle] pathForResource:@"w1" ofType:@"geo"];

Even though it's in a subdir. The bundle will find this out for itself.

Of course, make sure that all your resources are uniquely named, otherwise you might not know which file you're actually loading.
mesohorny is offline   Reply With Quote
 

» Advertisements
» Online Users: 417
13 members and 404 guests
chits12345, daniljan, darrenshain, ephefei, erdinc27, EvilElf, ipodphone, jimmyon122, JmayLive, linkmx, Mnadeep, observer247, tomtom100
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,588
Threads: 94,083
Posts: 402,775
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daniljan
Powered by vBadvanced CMPS v3.1.0

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