Java delegate for NSBrowser?
Java delegate for NSBrowser?
- Subject: Java delegate for NSBrowser?
- From: email@hidden
- Date: Thu, 27 Sep 2001 17:01:40 -0700
I'm attempting to write a delegate for NSBrowser in a Java application.
The browser delegate is defined as:
public class BrowserDelegate {
public int browserNumberOfRowsInColumn(NSBrowser sender, int
column) {
return [number of rows];
}
public void broswerWillDisplayCell(NSBrowser sender,
Object cell, int row, int column) {
//set cell state
}
}
When I run the application, I get the following error, when I attempt to
set the delegate:
*** Illegal NSBrowser delegate
(SRImageOpManager$SRImageOpBrowserDelegate@7dc96c). Must implement
browser:willDisplayCell:atRow:column: and either
browser:numberOfRowsInColumn: or browser:createRowsForColumn:inMatrix:
Is there a problem using a Java class as a delegate, or have I made some
much simpler (read: stupid) mistake.
Thanks,
barry