Skip to content
Guest Big Announcement

Few Objective-C Questions!

Featured Replies

hey, so I've been out of the 'creating tweaks' game for awhile and I have some questions that I either can't figure out or things I just don't understand. hopefully someone can clear these up for me.

 

What is MSHook / MSHookIvar useful for, how do I know what to call in order to use it properly?

 

How can I call instance methods from other classes / headers and use them in an existing function.

example;

 

1.h

-(id)username;

 

2.h

-(void)sendMessageTo:(id)arg1;

 

arg1 = ?? (how can I make it -(id)username from 1.h)

 

 

What is the difference between .mm and .xm files and how are each helpful? in some open source tweaks I see that the Tweak.xm only contains Tweak.mm, why? (are they helpful with sandboxed tweaks?)

 

how do I properly use the %c(Class_Here) functions / method?

 

 

sorry for all the questions, I've looked places and can't find the answers relating to the jailbreak side of things!

 

if you know any / one feel free to comment! you don't need to answer all :)

 

thanks again

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.