Skip to content

Commit 0e97018

Browse files
author
Mike McFadden
committed
Give some processes to Notification Center; also 1.2
Some processes listed under System seemed to be used by Notification Center, so they were added using the new manual mapping feature. The icon for Notification Center had to be fixed manually too since NotificationCenter.app doesn’t have an icon. Also I think I’m going to make this version 1.2 instead of 1.1.1.
1 parent 5415a92 commit 0e97018

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

Loading/AppDelegate.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,9 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
399399
@"/System/Library/Frameworks/WebKit.framework/" : @"com.apple.Safari",
400400
@"/System/Library/PrivateFrameworks/CommerceKit.framework/" : @"com.apple.AppStore",
401401
@"/System/Library/Frameworks/AddressBook.framework/" : @"com.apple.AddressBook",
402+
@"/System/Library/PrivateFrameworks/CalendarAgent.framework/" : @"com.apple.iCal",
403+
@"/System/Library/PrivateFrameworks/ApplePushService.framework/" : @"com.apple.notificationcenterui",
404+
@"/System/Library/PrivateFrameworks/WeatherKit.framework/" : @"com.apple.notificationcenterui",
402405
@"/Library/Application Support/Adobe/Flash Player Install Manager/" : @"com.adobe.flashplayer.installmanager"
403406
};
404407

Loading/AppRecord.m

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,20 @@ - (id)initWithPath:(NSString *)path2 {
7070
}
7171
}
7272

73+
if (self.icon == nil) {
74+
// see if we can magically determine the correct icon for it
75+
NSString *icon_path = nil; NSImage *icon2;
76+
77+
// so far only Notification Center is supported
78+
if ([self.path hasPrefix:@"/System/Library/CoreServices/NotificationCenter.app"])
79+
icon_path = @"/System/Library/PreferencePanes/Notifications.prefPane/Contents/Resources/Notifications.icns";
80+
81+
if (icon_path != nil && (icon2 = [[NSImage alloc] initByReferencingFile:icon_path])) {
82+
[icon2 setSize:NSMakeSize(16, 16)];
83+
self.icon = icon2;
84+
}
85+
}
86+
7387
if (self.icon == nil) {
7488
// give it a "blank app" icon
7589
NSImage *icon2 = [[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode(kGenericApplicationIcon)];

Loading/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.1.1</string>
20+
<string>1.2</string>
2121
<key>CFBundleSignature</key>
2222
<string>BNZI</string>
2323
<key>CFBundleVersion</key>
24-
<string>573</string>
24+
<string>574</string>
2525
<key>LSApplicationCategoryType</key>
2626
<string>public.app-category.utilities</string>
2727
<key>LSMinimumSystemVersion</key>

0 commit comments

Comments
 (0)