Posted: 31st Oct 2011 14:14
I want to support two languages.
Posted: 31st Oct 2011 17:16
I found the answer by myself.

+ Code Snippet
NSUserDefaults* defs = [NSUserDefaults standardUserDefaults];
	NSArray* languages = [defs objectForKey:@"AppleLanguages"];
	NSString* preferredLang = [languages objectAtIndex:0];

	char fnameStr[32];
	strcpy(fnameStr, [preferredLang UTF8String]);
Posted: 31st Oct 2011 17:59
Hi sorry to butt into your thread , i wonder if you know how to share variables between obj c and c++ in xcode , what i`m trying to do is use a virtual button in agk to send a message to kickstart the ipod library playing i have the code in obj c to start the music which works fine .

thanks in advance chunks.
Posted: 31st Oct 2011 21:06
Aren't INT & FLOAT the same in Obj-c & c++ ?
Posted: 31st Oct 2011 22:05
yes they are i think its more the global scope i was struggling with , anyways i found a way by putting a class in template.h with a bool inside the public part and use extern on the class that allows me to use the bool globally to set my ipod library going .

chunks