Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Generating Java subclasses

Title: Generating Java subclasses
Hi,

I’m trying to create a subclass of NSObject that will be the drag source delegate. Following the patterns, that means I need two things:

1. A Java class org.eclipse.swt.internal.cocoa.SWTDragSourceDelegate that extends NSObject
2. A dynamically-generated Objective-C sublcass with the same name, and then add the selectors from NSDraggingSource to the class dynamically, and have them call back into a Callback.

#2 is pretty straightforward, but do I create #1 myself? Or is it supposed to be generated? If generated where do I declare it?

Scott

Back to the top