Java Cocoa - App doesnt work outside of PB
Java Cocoa - App doesnt work outside of PB
- Subject: Java Cocoa - App doesnt work outside of PB
- From: email@hidden
- Date: Fri, 12 Apr 2002 12:04:58 +0100
Ive got an app which runs fine in project builder but when i pull it out
onto the desktop, or even just lauch the built .app product it quits with
the following console data.
Has anyone seen this happening? Id guess its some thing to do with a null
pointer but i cant really see where
ObjCJava WARNING:jobjc_jvm_newObject(): constructor with signature
(Lcom/apple/cocoa/foundation/NSRect;)V on class mapView failed (should
morph the java exception)
2002-04-12 11:48:28.965 Trout[3075] AppKitJava: uncaught exception
OBJCJava_RUNTIME_EXCEPTION ((null))
2002-04-12 11:48:28.965 Trout[3075] AppKitJava: exception = (null
description)
2002-04-12 11:48:28.965 Trout[3075] AppKitJava: terminating.
public class mapView extends NSScrollView
{
private mapPanel thePanel;
NSTextField currentZoom;
public mapView(NSRect aRect)
{
super(aRect);
setHasVerticalScroller(true);
setHasHorizontalScroller(true);
NSClipView theView = new NSClipView();
thePanel = new mapPanel(new NSRect(0.0f,0.0f,1000.0f,1000.0f));
theView.setDocumentView(thePanel);
setContentView(theView);
NSImage crosshair = new NSImage
("Trout.app/contents/resources/crosshair.tif",false);
NSCursor theCursor = new NSCursor(crosshair,new NSPoint(8,8));
setDocumentCursor(theCursor);
}
...
**********************************************************************************
Our network may monitor outgoing and incoming e-mail messages for
security and customer service purposes, but this e-mail is confidential.
Please notify the sender immediately if you receive it in error, and then delete it.
Thank you.
_______________________________________________
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.