i'm trying to poll the active processes for menu bar items (Volume, Date & Time, etc.) but the NSDictionary key @"NSApplicationBundleIdentifier" doesn't seem to recognize the bundle identifier for them.
-=-=-=- //Poll Processes NSWorkspace *ws = [NSWorkspace sharedWorkspace]; NSArray *runningAppDictionaries = [ws launchedApplications]; NSDictionary *aDictionary; for (aDictionary in runningAppDictionaries) { //If Volume Menu Item is active if ([[aDictionary valueForKey:@"NSApplicationBundleIdentifier"] isEqualToString:@"com.apple.menuextra.volume"]) { NSLog(@"Volume Menu Active"); return; break; } } NSLog(@"Volume Menu Not Active"); -=-=-=- _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com