Cocoa-Java Doc app problems
Cocoa-Java Doc app problems
- Subject: Cocoa-Java Doc app problems
- From: Avi Rosenblatt <email@hidden>
- Date: Sun, 30 Jun 2002 17:39:02 -0400
Hi,
I followed a tutorial (found at
www.macdevcenter.com/pub/a/mac/2002/04/19/cocoa.html.webloc) which
builds an image viewing app (using a Cocoa Doc app).The tutorial uses
objective-C but I translated it into Java.
Two problems have evolved and I'm not sure if the second one is related
to the first.
Problem 1: In Interface Builder, I want to add an action to a subclass
of NSWindowController. The method is called changeScale. However, when I
type it in, it's replaced by the message "<invlaid number of
arguments>".Any other similar method name works.
I see a similar problem when creating a subclass of NSImageView. In this
case I don't add any new actions, but when I change the file type from
Obj-c to Java, the first method listed in the actions (which is
inherited from NSImageView and therefore cannot be changed) turns into
the same message I mentioned before. What's going on?
Problem 2: The app compiles fine except that when I build and run, I get
the message "2002-06-26 11:23:01.413 ImageApp[662] *** file
inconsistency: read '@', expecting 'C'"
and then
"ImageApp has exited due to signal 11 (SIGSEGV)." and the app dies.
Any help would be greatly appreciated.
Thanx
Avi
_______________________________________________
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.