Does anybody program in Java?!?!
Does anybody program in Java?!?!
- Subject: Does anybody program in Java?!?!
- From: Stephen Vogelpohl <email@hidden>
- Date: Mon, 11 Oct 2004 20:33:19 -0400
In pursuit to the answer of the question I posted previously, I've
noticed that hardly anyone answers java questions. Does that mean
hardly anybody programs in java and chooses objective C instead? I
can't believe that to be the case. So why is it that (seemingly) none
of the java related questions get answered? And if it is true, why is
objective C a better way to go then Java?
If you do know java, would you mind answering my question (I've
re-pasted it below)
I'm just getting my feet wet with Java and Cocoa and
have come across a blocking (but likely basic)
problem. Using Interface Builder I make a simple UI
by just adding an NSButton object and using the drag
method to create an NSMatrix of 10 of them in a
column. I then subclass the NSMatrix class and set
the "Custom Class" field of my NSMatrix buttons to be
this subclass. I create the file for the NSMatrix
class (selecting Java of course) but make no changes
to the file. I also make a subclass of NSObject which
will be my controller class. I instantiate it, and
create it's files. Once again, I do nothing with that
file. I then do a build and run and am presented with
the following error message:
004-10-09 18:10:16.143 MyApp[863] AppKitJava: uncaught
exception NSArchiverArchiveInconsistency (*** file
inconsistency: read '@', expecting 'C')
2004-10-09 18:10:16.157 MyApp[863] AppKitJava:
exception = *** file inconsistency: read '@',
expecting 'C'
2004-10-09 18:10:16.159 MyApp[863] AppKitJava:
terminating.
Anybody know why this is giving me problems? If I do
the same thing but instead of subclassing NSMatrix, I
just set the custom class of my matrix of buttons to
be NSMatrix, it builds and runs without a problem. I
only get this error as soon as I subclass the NSMatrix
and set the custom class of my NSMatrix of buttons to
that new subclass. I'm sure the problem is some basic
concept I'm not aware of. Your help would be GREATLY
appreciated to get this newbie on his way to
java/cocoa programming greatness :-)
_______________________________________________
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