Re: Subclassing a Cocoa class while in a Java package
Re: Subclassing a Cocoa class while in a Java package
- Subject: Re: Subclassing a Cocoa class while in a Java package
- From: Frédéric BLANC <email@hidden>
- Date: Thu, 13 Feb 2003 01:32:59 +0100
In IB, the class tab seems to only allows package-based classes (ex.
: "com.acme.ourproduct.OurNSTableView") when derivating JDK Java
classes (like
java.lang.Object.) When creating our fully-named class "under"
NSTableView, the name is cancelled
(since invalid because of the dots.)
Note: It looks like a bug since this class name is then editable in
the inspector - where dots are then allowed...
Have you checked Java radio button inside Attributes panel for your
subclass?
Yep, but only AFTER the class is created (so, w/o the package-based
name) By default, the newly created class is set as Obj-C (and don't
understand dots in its name) ; then, I've tried to change its "type" to
Java via the radio button AND change its name to the package-style one.
It's okay, but I then don't see my class as a possibility in the
"Custom Class" inspector to change my NSTableView object to my new
"com.acme.ourproduct.OurNSTableView" (even if it's extending
NSTableView!)
Pfew, sort of frustrating and I don't know WHERE I can ask since very
few people seem to use Cocoa-Java here! Thanks for your help, it's kind
of blocking right now since I CAN'T specialize any standard Cocoa
object by subclassing it (w/o including it in my package)
- Fred
_______________________________________________
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.