Cococa Classes? IB and Pure code
Cococa Classes? IB and Pure code
- Subject: Cococa Classes? IB and Pure code
- From: malcom <email@hidden>
- Date: Tue, 16 Jul 2002 22:41:11 +0200
I have two classes:
socketIRC (java pure class)
guiControl (cocoa - java...instanced from IB)
GuiControl have one outlet and one action:
NSTextField label;
OpenConnection();
I would to set a string value to label (.setStringValue()) from class
socketIRC (i have instanced this class inside the guicontrol class from
the openconnection method) to the guiControl class.
I have tried to do it but an error like this: "non static context...".
Now i set the NSTextField to public static. But another error, this
time at the runtime. When i try to set the value:
"java.lang.NullPointerException".
Now my question is: how can i set a value of an object inside a class,
from another class?
And... my socketIRC class have a while(1) (until the end of execution)
that read the socket buffer for new data incoming. But if i try to run
the class, i can't do anything more... how can i run this process in
background? (i have instanced the object: socketIRC x = new
socketIRC(); x.main();).
Thx a lot, malcom
_______________________________________________
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.