Permalink
Browse files

Add +app: to shorten up app communication.

example [[JSTalk app:'Hibari'] selectedTweet]
(versus [[JSTalk application:'Hibari'] selectedTweet])
  • Loading branch information...
1 parent 5859ea0 commit d67ffb28947e60a90d13d37c2e6ddeea78b8da3d @rentzsch rentzsch committed Nov 11, 2010
Showing with 4 additions and 0 deletions.
  1. +1 −0 src/JSTalk.h
  2. +3 −0 src/JSTalk.m
View
@@ -32,5 +32,6 @@
+ (void)resetPlugins;
+ (void)setShouldLoadJSTPlugins:(BOOL)b;
+ (id)application:(NSString*)app;
++ (id)app:(NSString*)app;
@end
View
@@ -338,6 +338,9 @@ + (id)application:(NSString*)app {
return [self applicationOnPort:[NSString stringWithFormat:@"%@.JSTalk", bundleId]];
}
++ (id)app:(NSString*)app {
+ return [self application:app];
+}
+ (id)proxyForApp:(NSString*)app {
return [self application:app];

0 comments on commit d67ffb2

Please sign in to comment.