NSString *fullPath = [NSString stringWithUTF8String:path]; jpg = [[NSImage alloc] initWithContentsOfFile: fullPath];
unsigned long fileSize = 0; unsigned char* pFileData = cocos2d::CZHelperFunc::getFileData(path, "rb", &fileSize); NSData *adata = [[NSData alloc] initWithBytes:pFileData length:fileSize]; delete []pFileData; jpg = [[NSImage alloc] initWithData:adata];
unsigned char* pFileData = CCFileUtils::sharedFileUtils()->getFileData(strTemp.c_str(), &fileSize);
unsigned char* pFileData = CZHelperFunc::getFileData(strTemp.c_str(), &fileSize);
NSString* pPath = [NSString stringWithUTF8String:fullPath.c_str()]; NSDictionary* pDict = [NSDictionary dictionaryWithContentsOfFile:pPath];
unsigned long fileSize = 0; unsigned char* pFileData = CZHelperFunc::getFileData(fullPath.c_str(), &fileSize); NSData *data = [[[NSData alloc] initWithBytes:pFileData length:fileSize] autorelease]; delete []pFileData; NSPropertyListFormat format; NSString *error; NSMutableDictionary *pDict = (NSMutableDictionary *)[ NSPropertyListSerialization propertyListFromData:data mutabilityOption:NSPropertyListMutableContainersAndLeaves format:&format errorDescription:&error];