• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Subclassing a Cocoa class while in a Java package
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Subclassing a Cocoa class while in a Java package (From: Enrico Stamigna <email@hidden>)

  • Prev by Date: Strange Error with Singleton Class
  • Next by Date: Re: layout management and cocoa
  • Previous by thread: Subclassing a Cocoa class while in a Java package
  • Next by thread: Large volume printing question
  • Index(es):
    • Date
    • Thread