Working With Bitmap Images; Document-Based Application Redux
Subject:   Converting to Cocoa-java
Date:   2002-06-27 12:34:56
From:   arosen
Although the tutorial is in Objective-C, I tried to follow the tutorial using java instead. I hope someone can help me out.
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 the action changeScale to IAWindowController. However, when I type it in, it's replaced by the message "<invlaid number of arguments>".Any other similar method name works(eg changeScales,etc).
I see a similar problem when creating IAImageView. 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.

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.