How to properly hook into an instance variable with theos

 cell = [[[%c(SBSearchTableViewCell) alloc] initWithStyle:(UITableViewCellStyleDefault) reuseIdentifier:@"dude"] autorelease];
 float &secWidth = MSHookIvar(cell, "_sectionHeaderWidth");
 if (secWidth) {
    secWidth = sectionHeaderWidth;

Not the %c to get the class and the & in front of secWidth. This makes sure you are getting a reference.

How to set up Priority Inbox to view archived mail

  1. Go to the priority inbox settings tab.
  2. Click the options next to the section you want to show your work mail.
  3. Click “More Options…”
  4. Inspect the element for the “Work” Label
  5. You will notice on the surrounding div there is an attribute cfg=”^all,Work”, change the value to “^i,Work”
  6. Select the label on the page as you normally would
  7. You will know if it worked or not straight away because the section settings should now read : Inbox, Work instead of the All Work that it used to read.

Here is a list of alternative commands you can use:

^i = Inbox
 ^u = Unread
 ^io_im = Important
 ^t = starred
 ^f = sent
 ^r = drafts
 ^all = All mail (include archive)

You can chain commands together with a comma.

ie. ^i,^u,Work = all emails in your inbox, that are unread with the label “Work”.



            Iran used to be one of the United States’ greatest allies in the Middle East. This alliance fell apart at the time of the Iranian Revolution of 1979. The Iranian Revolution was short but violent, causing many civilians to lose their lives. The United States had the power to intervene, stop the revolution, and prevent the loss of civilian life. They had a significant investment in Iran and lost it all during the revolution. Some might say that it was possible for the United States to end the revolution and that it would have been in the United States’ best interest to stop it or that it was the moral thing to do. This brings about the question of why did the United States consider intervening, but ultimately refuse to fully intervene in the Iranian Revolution of 1979? This paper will address why the United States did not intervene in the revolution using the primary ethical theory of state moralism and the alternate theory of defensive realism.
            This paper is broken up into seven sections with the first section being the introduction followed by the background of the Iranian Revolution of 1979 and its significance today. The third section will define state moralism, a theory which will be used to explain why the United States did not intervene in the revolution. The fourth section will be the hypothesis which will put the theory into the context of the situation. The fifth section is the analysis of the theory in regard to the situation. The sixth section will be an alternative theory and its application to the situation to explain why the United States did not intervene in the revolution. Lastly, there will be a conclusion to summarize this paper. This paper will test the ability of the ethical theory of state moralism to explain why the United States did not fully intervene in the 1979 Iranian Revolution.


Continue reading