Subversion Repositories TruePreview

[/] [trunk/] [Source/] [TruePreview.m] - Diff between revs 17 and 23

Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | View Log

Rev 17 Rev 23
Line 68... Line 68...
    isClassMethod:NO
    isClassMethod:NO
  ];
  ];
  [NSClassFromString(@"MessageViewer")
  [NSClassFromString(@"MessageViewer")
    truePreviewSwizzleMethod:@selector(dealloc)
    truePreviewSwizzleMethod:@selector(dealloc)
    withMethod:@selector(truePreviewDealloc)
    withMethod:@selector(truePreviewDealloc)
 
    isClassMethod:NO
 
  ];
 
  [NSClassFromString(@"MessageViewer")
 
    truePreviewSwizzleMethod:@selector(forwardAsAttachment:)
 
    withMethod:@selector(truePreviewForwardAsAttachment:)
 
    isClassMethod:NO
 
  ];
 
  [NSClassFromString(@"MessageViewer")
 
    truePreviewSwizzleMethod:@selector(forwardMessage:)
 
    withMethod:@selector(truePreviewForwardMessage:)
    isClassMethod:NO
    isClassMethod:NO
  ];
  ];
  [NSClassFromString(@"MessageViewer")
  [NSClassFromString(@"MessageViewer")
    truePreviewSwizzleMethod:@selector(markAsRead:)
    truePreviewSwizzleMethod:@selector(markAsRead:)
    withMethod:@selector(truePreviewMarkAsRead:)
    withMethod:@selector(truePreviewMarkAsRead:)
    isClassMethod:NO
    isClassMethod:NO
  ];
  ];
  [NSClassFromString(@"MessageViewer")
  [NSClassFromString(@"MessageViewer")
    truePreviewSwizzleMethod:@selector(markAsUnread:)
    truePreviewSwizzleMethod:@selector(markAsUnread:)
    withMethod:@selector(truePreviewMarkAsUnread:)
    withMethod:@selector(truePreviewMarkAsUnread:)
 
    isClassMethod:NO
 
  ];
 
  [NSClassFromString(@"MessageViewer")
 
    truePreviewSwizzleMethod:@selector(messageNoLongerDisplayedInTextView:)
 
    withMethod:@selector(truePreviewMessageNoLongerDisplayedInTextView:)
    isClassMethod:NO
    isClassMethod:NO
  ];
  ];
  [NSClassFromString(@"MessageViewer")
  [NSClassFromString(@"MessageViewer")
    truePreviewSwizzleMethod:@selector(messageWasDisplayedInTextView:)
    truePreviewSwizzleMethod:@selector(messageWasDisplayedInTextView:)
    withMethod:@selector(truePreviewMessageWasDisplayedInTextView:)
    withMethod:@selector(truePreviewMessageWasDisplayedInTextView:)
    isClassMethod:NO
    isClassMethod:NO
  ];
  ];
  [NSClassFromString(@"MessageViewer")
  [NSClassFromString(@"MessageViewer")
    truePreviewSwizzleMethod:@selector(messageNoLongerDisplayedInTextView:)
    truePreviewSwizzleMethod:@selector(replyAllMessage:)
    withMethod:@selector(truePreviewMessageNoLongerDisplayedInTextView:)
    withMethod:@selector(truePreviewReplyAllMessage:)
 
    isClassMethod:NO
 
  ];
 
  [NSClassFromString(@"MessageViewer")
 
    truePreviewSwizzleMethod:@selector(replyMessage:)
 
    withMethod:@selector(truePreviewReplyMessage:)
    isClassMethod:NO
    isClassMethod:NO
  ];
  ];
  [NSClassFromString(@"NSPreferences")
  [NSClassFromString(@"NSPreferences")
   truePreviewSwizzleMethod:@selector(sharedPreferences)
   truePreviewSwizzleMethod:@selector(sharedPreferences)
   withMethod:@selector(truePreviewSharedPreferences)
   withMethod:@selector(truePreviewSharedPreferences)
Line 100... Line 120...
 
 
  // set defaults
  // set defaults
  [[NSUserDefaults standardUserDefaults]
  [[NSUserDefaults standardUserDefaults]
    registerDefaults:[NSDictionary dictionaryWithObjectsAndKeys:
    registerDefaults:[NSDictionary dictionaryWithObjectsAndKeys:
      [NSNumber numberWithInt:TRUEPREVIEW_DELAY_IMMEDIATE], @"TruePreviewDelay",
      [NSNumber numberWithInt:TRUEPREVIEW_DELAY_IMMEDIATE], @"TruePreviewDelay",
 
      [NSNumber numberWithInt:NSOnState], @"TruePreviewReply",
 
      [NSNumber numberWithInt:NSOnState], @"TruePreviewForward",
      [NSNumber numberWithInt:NSOnState], @"TruePreviewWindow",
      [NSNumber numberWithInt:NSOnState], @"TruePreviewWindow",
      [NSNumber numberWithInt:NSOffState], @"TruePreviewScroll",
      [NSNumber numberWithInt:NSOffState], @"TruePreviewScroll",
      nil
      nil
    ]
    ]
  ];
  ];