Hi,
I think im having the same problem, did you manage to fix the problem?
I'm porting my game to the mac, it is going ok but I have hit a problem I can't seem to fix.
In the game I save all the levels into pList from our external editor and then load them into the game using the following code, which works great on iOs, but on OSX it just doesn't find the files.
iOS code -
Code:
NSString* levelString = [NSString stringWithFormat:@"L%d.plist", level];
NSString *path = [[NSBundle mainBundle] bundlePath];
NSString *finalPath = [path stringByAppendingPathComponent:levelString];
NSDictionary *dictionary = [NSDictionary dictionaryWithContentsOfFile:levelString];
NSLog(@"Final Path = %@",finalPath);
//Do Load Level...
The output from that NSLog reads as follows -
Final Path = /Users/daviddeacon/Library/Developer/Xcode/DerivedData/GameMac-bphkstcwuqklgxbgdhezeutagblu/Build/Products/Release/GameMac.app/L1101.plist
I started developing on iOS first so haven't got a base knowledge of the differences between the to platforms, Is the mainBundle path much different?
Thanks, David