• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Overriding NSApplication in Cocoa-Java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Overriding NSApplication in Cocoa-Java
      • From: Magnus Strand <email@hidden>
  • Prev by Date: Re: NSBundle problem accumulates execution time
  • Next by Date: NSString's -(NSSize)sizeWithAttributes returns zero!?
  • Previous by thread: Re: OT: .dmg creator
  • Next by thread: Re: Overriding NSApplication in Cocoa-Java
  • Index(es):
    • Date
    • Thread