I am trying to load a TableView with powerpoint files that are stored in the MainBundle of my app. I am having much difficulty.
NSBundle *bundle = [NSBundle mainBundle];
NSArray *paths = [bundle pathsForResourcesOfType:@"ppt" inDirectory:@"Resources"];
NSFileManager *manager = [NSFileManager defaultManager];
self.title = @"Devo Songs";
self.files = [[[manager contentsOfDirectoryAtPath:paths error:nil] pathsMatchingExtensions:[NSArray arrayWithObjects:@"ppt", nil]] retain];
The app crashes and I get warnings on the last line stating incompatible pointer types sending NSArray to NSString. How can I best go about loading the PPT files into a TableView?