Create new TextEdit documents via LaunchBar
Learn how to add a custom action in LaunchBar to create and open a new TextEdit document in a particular folder:
Learn how to add a custom action in LaunchBar to create and open a new TextEdit document in a particular folder:
NSColor *color = [NSColor colorWithCatalogName:@"System" colorName:@"_sourceListBackgroundColor"];
if (color == nil) {
NSTableView *tableView = [[[NSTableView alloc] initWithFrame:NSZeroRect] autorelease];
[tableView setSelectionHighlightStyle:NSTableViewSelectionHighlightStyleSourceList];
color = [tableView backgroundColor];
}
This color changes its brightness/saturation automatically depending on if the window is key window and if the application is active.