|Re: [platform-swt-dev] setDelegate for NSApplication|
There are two problems here. First, it's not enough to just call "new CocoaClass()". You also need to call alloc() and init() so the underlying Cocoa object is created and initialized. Then, your delegate needs to have the objective-C methods defined and added to the class. See Display.initClasses() for ideas on how you would do this.
On Aug 13, 2010, at 8:32 AM, Roberto Cesare wrote:
The other problem you may run into is that the SWT already uses the NSApplication's delegate for its own purposes. Have a look at Display to see what you would lose by using your own delegate object.
-- Scott K.