[Adium-devl] [Adium-svn] rev 19719 - trunk/Source

Juan Manuel Palacios juan at grummel.net
Sun May 13 18:27:14 UTC 2007


On May 13, 2007, at 1:30 PM, evands at adiumx.com wrote:

> Author: evands
> Date: 2007-05-13 12:30:17 -0500 (Sun, 13 May 2007)
> New Revision: 19719
>
> Modified:
>    trunk/Source/AIAdium.m
> Log:
> Patch from Joe Ranieri, discussed on adium-devl, which publishes  
> Adium via NSConnection under the name 'com.adiumx.adiumx' to allow  
> distant object (out of process) communication.


	Is this name under which Adium is published case sensitive? I guess  
I'm just making a case (no pun ;-) for consistency, Adium's  
preferences are written under the name com.adiumX.adiumX.plist, which  
is accessible by defaults(1) through any variation in casing of the  
two x's, at least in an HFS case (?) insensitive filesystem.... no  
idea what the case (??) is in HFS case (??? ;-) sensitive. In any  
case (my God!), I'm guessing it would only be a good thing to be  
consistent about capitalization (thank God for synonyms!) in the  
name, unless other restrictions I'm not aware of apply with respect  
to distant objects.

	Just my two cents! Regards,...


-jmpp


>
> Modified: trunk/Source/AIAdium.m
> ===================================================================
> --- trunk/Source/AIAdium.m	2007-05-13 17:09:42 UTC (rev 19718)
> +++ trunk/Source/AIAdium.m	2007-05-13 17:30:17 UTC (rev 19719)
> @@ -467,12 +467,18 @@
>  	[self configureHelp];
>  	
>  	[[self notificationCenter]  
> postNotificationName:AIApplicationDidFinishLoadingNotification  
> object:nil];
> -	
> +	[[NSDistributedNotificationCenter defaultCenter]   
> postNotificationName:AIApplicationDidFinishLoadingNotification  
> object:nil];
> +
>  	[[NSDistributedNotificationCenter defaultCenter] addObserver:self
>  														selector:@selector(systemTimeZoneDidChange:)
>  															 
> name:@"NSSystemTimeZoneDidChangeDistributedNotification"
>  														  object:nil];
>  	
> +	//Broadcast our presence
> +	NSConnection *connection = [NSConnection defaultConnection];
> +	[connection setRootObject:self];
> +	[connection registerName:@"com.adiumx.adiumx"];
> +
>  	[pool release];
>  }
>
> @@ -1134,6 +1140,11 @@
>  	[NSTimeZone resetSystemTimeZone];
>  }
>
> +- (NSApplication *)application
> +{
> +	return [NSApplication sharedApplication];
> +}
> +
>  #pragma mark Scripting
>  - (BOOL)application:(NSApplication *)sender delegateHandlesKey: 
> (NSString *)key {
>  	BOOL handleKey = NO;
>
>
> _______________________________________________
> Adium-svn mailing list
> Adium-svn at adiumx.com
> http://adiumx.com/mailman/listinfo/adium-svn_adiumx.com





More information about the devel mailing list