adium-1.4 3175:341da2daf2cb: Cleanup, remove debug logging, remo...

commits at adium.im commits at adium.im
Sat Oct 30 09:13:40 UTC 2010


details:	http://hg.adium.im/adium-1.4/rev/341da2daf2cb
revision:	3175:341da2daf2cb
author:		Evan Schoenberg
date:		Sat Oct 30 04:13:17 2010 -0500

Cleanup, remove debug logging, remove stray release

diffs (46 lines):

diff -r c8cce645f32c -r 341da2daf2cb Plugins/Status Menu Item/CBStatusMenuItemController.m
--- a/Plugins/Status Menu Item/CBStatusMenuItemController.m	Sat Oct 30 03:56:23 2010 -0500
+++ b/Plugins/Status Menu Item/CBStatusMenuItemController.m	Sat Oct 30 04:13:17 2010 -0500
@@ -99,10 +99,10 @@
 		accountsMenuNeedsUpdate = YES;
 		optionsMenuNeedsUpdate = YES;
 		
-		self.contactsMenuItem = [[NSMenuItem allocWithZone:[NSMenu menuZone]] initWithTitle:AILocalizedString(@"Contacts",nil)
-																					 target:self
-																					 action:nil
-																			  keyEquivalent:@""];
+		self.contactsMenuItem = [[[NSMenuItem allocWithZone:[NSMenu menuZone]] initWithTitle:AILocalizedString(@"Contacts",nil)
+																					  target:self
+																					  action:nil
+																			   keyEquivalent:@""] autorelease];
 
 		NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
 		//Register to recieve chat opened and chat closed notifications
@@ -518,7 +518,6 @@
 - (void)contactMenuDidRebuild:(AIContactMenu *)inContactMenu 
 {
 	NSMenu *menu = inContactMenu.menu;
-
 	NSInteger newNumberOfMenuItems = menu.numberOfItems;
 
 	// Going from or to 0 contacts requires a main menu update
@@ -598,6 +597,11 @@
 	return YES;
 }
 
+- (BOOL)contactMenuShouldPopulateMenuLazily:(AIContactMenu *)inContactMenu
+{
+	return YES;
+}
+
 #pragma mark List Object Observer
 /*!
  * @brief List Observer delegate method
@@ -704,7 +708,6 @@
 		if ([contactMenu.menu numberOfItems] > 0) {
 			// Add contacts
 			[menu addItem:self.contactsMenuItem];
-			[menuItem release];
 
 		} else {
 			[menu addItemWithTitle:[AILocalizedString(@"Contact List", nil) stringByAppendingEllipsis]




More information about the commits mailing list