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);
Note that these descriptions are found under the class docs for NSTabView - not NSTabViewItem.Here are the descriptions, FWIW:
- (int)indexOfTabViewItem:(NSTabViewItem *)tabViewItem
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.I'm obviously interpreting something wrong. Clues, anyone?
sherm--
UNIX: Where /sbin/init is Job 1.
