I have an NSTabView with several panes.  I want to know which pane
the user has selected, so that I can force the appropriate update
code to run.  So, I wrote a test function:

sub tabView_didSelectTabViewItem
{
    my ($self, $tv, $tvi) = @_;

    $tab_view_index = $tvi->indexOfTabViewItem();
    NSLog("tab index: $tab_view_index");

    return $self;
}

  - (int)indexOfTabViewItem:(NSTabViewItem *)tabViewItem

I'm obviously interpreting something wrong.  Clues, anyone?
indexOfTabViewItem: is a method of NSTabView, not NSTabViewItem.

Can you try:

$tab_view_index = $tv->indexOfTabViewItem($tvi);


Just guessing after checking the Cocoa Docs,

Thilo

Reply via email to