chamerling/qhtest — Issue #6: DND issue test
Author: chamerling
Created: 2012-01-05 16:27:26+00:00
State: open

NSNotificationCenter *center = [[NSWorkspace sharedWorkspace] notificationCenter];
[center addObserver: self
selector: @selector(wakeupEvent:)
name: NSWorkspaceDidWakeNotification
object: nil];
[center addObserver: self
selector: @selector(wakeupEvent:)
name: NSWorkspaceSessionDidBecomeActiveNotification
object: nil];

- (IBAction) showPreferences: (id) sender {
[NSApp activateIgnoringOtherApps: YES];
[preferencesWindowController showWindow: self];
}

NSString *title = commit.subject;
if (title.length > RecentCommitsTitleLimit) {
title = [[title substringToIndex: RecentCommitsTitleLimit - 1] stringByAppendingString: @"…"];
}