Skip to content
Browse files

Adds a minor bit of commenting to ApplescriptPluginManager.m.

  • Loading branch information...
1 parent db4a87b commit 861fe77acf6a3e313f82f25f8360c3a485c5a4c6 @Grayson committed Feb 6, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/ApplescriptPluginManager.m
View
3 src/ApplescriptPluginManager.m
@@ -12,6 +12,8 @@ @interface ApplescriptPluginManager (PrivateMethods)
-(void)build;
@end
+// Creates the 4-char code used by applescript to identify the application. This means the user does not have to
+// hard-code the app class code somewhere in the application.
unsigned long ASPluginAppClassCode() {
NSDictionary *infoPlist = [[NSBundle mainBundle] infoDictionary];
NSString *sig = [infoPlist objectForKey:@"CFBundleSignature"];
@@ -20,7 +22,6 @@ unsigned long ASPluginAppClassCode() {
code += [sig characterAtIndex:1] << 16;
code += [sig characterAtIndex:2] << 8;
code += [sig characterAtIndex:3];
-
return code;
}

0 comments on commit 861fe77

Please sign in to comment.
Something went wrong with that request. Please try again.