This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
3
How to invoke functions from other apps?
Post Body
I've noticed that when I'm hooking app-specific classes and try to store their instance variables, whenever I access them from somewhere else in my code it's as though the variable never got changed.
For example:
id instance = nil;
%hook SomeDumpedYoutubeClass
- (void)regularlyCalledFunction
{
%orig;
instance = self;
}
%end
... somewhere else in a personal class or in another hooked one like Springboard's:
NSLog(@"instance: %@", instance);
Which gives the output: (null)
And of course if I try to call a method from SomeDumpedYoutubeClass with instance, it doesn't get called.
Yes, I do have the app in my plist.
Anyway to work around this, or am I doing it wrong?
Author
Account Strength
80%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
173
Link Karma
38
Comment Karma
135
Profile updated: 2 days ago
Posts updated: 1 year ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 10 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/jailbreakde...