• 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
override windowControllerDidLoadNib in Java?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

override windowControllerDidLoadNib in Java?


  • Subject: override windowControllerDidLoadNib in Java?
  • From: Paul Szego <email@hidden>
  • Date: Wed, 23 Jun 2004 11:04:33 +1000

In xcode 1.2, when I create a new project using the Cocoa-Java
Document-based Appplication template, I get the following method in the
document class:

public void windowControllerDidLoadNib(NSWindowController aController)
{
super.windowControllerDidLoadNib(aController);
// Add any code here that needs to be executed once the
windowController has loaded the document's window.
}


When I run the app the call to super seems to cause an endless loop:
the super method somehow causes a call back down into my classes method
again. Here's the stack after I put a breakpoint in my method, but hit
"continue" a few times:

#0 MyDocument.windowControllerDidLoadNib()
#1 com.apple.cocoa.application.NSDocument.windowControllerDidLoadNib()
#2 0x00000002 in MyDocument.windowControllerDidLoadNib() at
MyDocument.java:57
#3 com.apple.cocoa.application.NSDocument.windowControllerDidLoadNib()
#4 0x00000002 in MyDocument.windowControllerDidLoadNib() at
MyDocument.java:57
#5 com.apple.cocoa.application.NSDocument.windowControllerDidLoadNib()
#6 0x00000002 in MyDocument.windowControllerDidLoadNib() at
MyDocument.java:57

Has anyone else seen this? Any idea what's wrong? If I comment out the
method the app runs.

Thanks,
Paul.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: KVC indexed accessors in Java
  • Next by Date: Re: TIFF Error?
  • Previous by thread: KVC indexed accessors in Java
  • Next by thread: Https with bad certs over NSURLConnection
  • Index(es):
    • Date
    • Thread