I'm making a tweak for jailbroken iPhones, and I have an object that I need to share between two processes. Currently, it is null in one process and contains information in another. How can I get around this?
Thanks!
I'm making a tweak for jailbroken iPhones, and I have an object that I need to share between two processes. Currently, it is null in one process and contains information in another. How can I get around this?
Thanks!
You should use NSUserDefaults:
Write them to memory as:
[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithDouble:variableName]forKey:@"giveItAName"];
Make sure it saves with:
[NSUserDefaults synchronise];
And them use them again like this:
NSNumber *number = [[[NSUserDefaults standardUserDefaults] objectForKey@"giveItAName"]doubleValue];
I also think you should look up what a global is, you don't seem to know how to use them
Hope this helps