Re: Cocoa Java Delegate Name
Re: Cocoa Java Delegate Name
- Subject: Re: Cocoa Java Delegate Name
- From: Ian Gillespie <email@hidden>
- Date: Mon, 16 Jun 2003 16:39:39 -0700
>
> Anyone willing to tell me what the delegate method is called, and
>
> perhaps more important, where I could have found the name in the docs?
>
>
Ok, I looked again, and found the docs where I expected.
>
>
My code thus looks like:
>
>
public class MyDocument extends NSDocument implements
>
NSTableView.DataSource {
>
public void tableViewDidClickTableColumn(NSTableView tableView,
>
NSTableColumn tableColumn){
>
System.out.println("tableViewDidClickTableColumn("+tableView+",
>
"+tableColumn+")");
>
}
>
[...]
>
}
>
>
I set up the connection in IB, and my tableViewDidClickTableColumn
>
method was still not being called.
>
>
I noted a message from back in December reporting that this method is
>
never called. Was there a bug filed, and was there a resolution?
Hi Scott,
I have successfully gotten table sorting implemented in a cocoa java
app. I used this method:
public void tableViewDidClickTableColumn( NSTableView tableView,
NSTableColumn aColumn) {
...
}
If you use this method and it isn't getting called, maybe you should
implement another delegate method to see if that is getting called. If
neither of them are getting called, then for some reason your table
delegate probably isn't set correctly.
Good luck,
Ian
_______________________________________________
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.