Ah, no. It gets flattened out. How do I maintain the folder structure I had
in XCode?

On Fri, Jun 26, 2009 at 10:39 AM, Alexander Spohr <a...@freeport.de> wrote:

> 1. Take a look inside your .app bundle.
> 2. Try to locate PrototypeImages.
> Is it anywhere?
>
>        atze
>
>
> Am 26.06.2009 um 16:20 schrieb Eric E. Dolecki:
>
>
>  I'm having difficulty with the inDirectory argument here, it's on the
>> iPhone
>> and in my project within Resources I have a folder named PrototypeImages -
>> how do I specify the inDirectory string?
>>
>> totalCount = [[[NSBundle mainBundle] pathsForResourcesOfType:@"jpg"
>> inDirectory:@"PrototypeImages"] count];
>>
>> NSLog(@"%i", totalCount);
>>
>>
>> Gives me 0.
>>
>>
>>
>> On Thu, Jun 25, 2009 at 7:24 PM, Eric E. Dolecki <edole...@gmail.com>
>> wrote:
>>
>>  Many thanks.
>>>
>>>
>>> On Thu, Jun 25, 2009 at 6:55 PM, Steve Christensen <puns...@mac.com
>>> >wrote:
>>>
>>>  You mean that quick perusal of NSBundle.h didn't turn up anything? Maybe
>>>> my headers are different from yours, but it was really easy to come up
>>>> with
>>>> that line myself:
>>>>
>>>> NSUInteger jpegCount = [[[NSBundle mainBundle] pathsForResourcesOfType:@
>>>> "jpg"
>>>> inDirectory:subDirName] count];
>>>>
>>>>
>>>>
>>>> On Jun 25, 2009, at 2:28 PM, Eric E. Dolecki wrote:
>>>>
>>>> iPhone:
>>>>
>>>>> I saw someplace online where a guy got the count for the number of JPGs
>>>>> in a
>>>>> folder in the main bundle but I can't find that again.
>>>>> Can anyone supply the line of code that would return something like
>>>>> that?
>>>>> I'm googling now too and haven't found it yet.
>>>>>
>>>>>
>>>>
>


-- 
http://ericd.net
Interactive design and development
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to