Overriding NSApplication in Cocoa-Java
Overriding NSApplication in Cocoa-Java
- Subject: Overriding NSApplication in Cocoa-Java
- From: "André Schaupp" <email@hidden>
- Date: Mon, 07 Feb 2005 12:03:24 +0100
Hello,
For automatic JUnit-Testing I have to override NSApplication in Java (it should
not open any alert panels for example).
So how do I get the right (my) Application-Object back, when using the
sharedApplication()-Method?
If I simply invoke the Constructor of my new Class, sharedApplication() throws
an Exception ("NSInternalInconsistencyException: Creating more than one
Application") the first time its called,
because Cocoa wants to create a new NSApplication-Object, although I
instantiated mine.
Thanks for help,
Andre Schaupp
_______________________________________________
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