NSMatrix Giving Error In Java
NSMatrix Giving Error In Java
- Subject: NSMatrix Giving Error In Java
- From: Stephen Vogelpohl <email@hidden>
- Date: Sat, 9 Oct 2004 15:19:38 -0700 (PDT)
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 :-)
Regards,
Stephen
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
_______________________________________________
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