On Wednesday, January 29, 2003, at 05:18 AM, Rich Morin wrote:

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

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

    return $self;
}
The above should be this:

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

Here are the descriptions, FWIW:
Note that these descriptions are found under the class docs for NSTabView - not NSTabViewItem.

  - (int)indexOfTabViewItem:(NSTabViewItem *)tabViewItem

I'm obviously interpreting something wrong.  Clues, anyone?
Obviously what you wanted to do is directly ask $tvi for its index - but you can't do that. What you want to do is ask the NSTabView object for the index of a given NSTabViewItem.

sherm--

UNIX: Where /sbin/init is Job 1.

Reply via email to