This is an Apple Event, not a Carbon Event, so we want keyDirectObject, not kEventParamDirectObject.
authorPeter Hosey <hg@boredzo.org>
Thu Sep 24 14:08:19 2009 -0700 (2009-09-24)
changeset 442958720a0d2d1f
parent 4428 902fcedc499b
child 4430 0f739ceca8b4
This is an Apple Event, not a Carbon Event, so we want keyDirectObject, not kEventParamDirectObject.
Framework/Source/GrowlApplicationBridge.m
     1.1 --- a/Framework/Source/GrowlApplicationBridge.m	Thu Sep 24 13:23:09 2009 -0700
     1.2 +++ b/Framework/Source/GrowlApplicationBridge.m	Thu Sep 24 14:08:19 2009 -0700
     1.3 @@ -824,7 +824,7 @@
     1.4  					if (passRegDict) {
     1.5  						NSString *regItemURLString = [regItemURL absoluteString];
     1.6  						NSData *regItemURLUTF8Data = [regItemURLString dataUsingEncoding:NSUTF8StringEncoding];
     1.7 -						err = AEStreamWriteKeyDesc(stream, kEventParamDirectObject, typeFileURL, [regItemURLUTF8Data bytes], [regItemURLUTF8Data length]);
     1.8 +						err = AEStreamWriteKeyDesc(stream, keyDirectObject, typeFileURL, [regItemURLUTF8Data bytes], [regItemURLUTF8Data length]);
     1.9  						if (err != noErr) {
    1.10  							NSLog(@"%@: Could not set direct object of open-document event to register this application with Growl because AEStreamWriteKeyDesc returned %li/%s", [self class], (long)err, GetMacOSStatusCommentString(err));
    1.11  						}