Changeset 23865
- Timestamp:
- 06/09/2008 02:01:35 AM (6 months ago)
- Files:
-
- trunk/Resources/Adium.sdef (modified) (2 diffs)
- trunk/Source/AIApplication.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Resources/Adium.sdef
r23753 r23865 44 44 <responds-to name="go invisible"> 45 45 <cocoa method="scriptingGoInvisible:"/> 46 </responds-to> 47 <responds-to name="GetURL"> 48 <cocoa method="scriptingGetURL:"/> 46 49 </responds-to> 47 50 </class> … … 294 297 </parameter> 295 298 </command> 299 <command name="GetURL" code="GURLGURL" description="Tells Adium to open the specified chat, in URL form"> 300 <cocoa class="NSScriptCommand" /> 301 <direct-parameter description="The URL of the chat" type="text"/> 302 </command> 296 303 <command name="count" code="corecnte" description="Return the number elements of a particular class within an object."> 297 304 <cocoa class="NSCountCommand"/> trunk/Source/AIApplication.m
r22869 r23865 19 19 #import "AIChatControllerProtocol.h" 20 20 #import "AIContactControllerProtocol.h" 21 #import "AdiumURLHandling.h" 21 22 22 23 @implementation AIApplication … … 241 242 } 242 243 244 - (id)scriptingGetURL:(NSScriptCommand *)command 245 { 246 NSString *url = [command directParameter]; 247 [AdiumURLHandling handleURLEvent:url]; 248 return nil; 249 } 250 243 251 #pragma mark Debugging 244 252 - (void)setValue:(id)value forUndefinedKey:(NSString *)key