kAEShowAbout ?
kAEShowAbout ?
- Subject: kAEShowAbout ?
- From: "Paul J. Lucas" <email@hidden>
- Date: Mon, 17 Apr 2006 18:10:38 -0700 (PDT)
There exists the kAEShowPreferences constant in AppleEvents.h
but there doesn't seem to be a kAEShowAbout constant that
represents the "show about box" event.
Because the com.apple.eawt.ApplicationAdapter and ApplicationEvent
Java classes don't pass along all the information I need, I'm
writing some JNI code using Cocoa to handle the basic Apple
events myself, then call Java through JNI.
I need to handle open-document, quit, show-preferences, and
show-about; however, only the first 3 seem to have associated
Apple events. For those three, I can do:
[[NSAppleEventManager sharedAppleEventManager]
setEventHandler:myHandler
andSelector:@selector(handleEvent:withReplyEvent:)
forEventClass:kCoreEventClass
andEventID:kAEOpenDocuments];
but how can I do this for handling when the user select "About
MyGreatApp" from the menu?
Note: since the native code is just a Java launcher, there's no
main NIB file for the application.
- Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden