ok so in the left hand tab of my xcode window i have a folder names "Cards" that contains 52 PNG images of playing cards. I want to use initWithContentsOfURL: to insert all the PNG Images into this NSMutableArray. But how can i tell it to insert the contents of the folder? im stumped please help!
what do i write there in order to insert the contents of the folder in the side bar?? should i be doing
if that would work i still need to know how to write out the path to the folder thanks!
Code:
array = [NSMutableArray alloc] initWithContentsOfURL: ?????: ];
what do i write there in order to insert the contents of the folder in the side bar?? should i be doing
Code:
NSURL *cardsPath = *// path to the folder with card PNG's;
array = [NSMutableArray alloc] initWithContentsOfURL:cardsPath];
[cardsPath release];
if that would work i still need to know how to write out the path to the folder thanks!