At 6:24 AM -0500 1/29/03, Sherm Pendley wrote:
The above should be this:

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

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.
Yep; that was it.  Reading ObjC descriptions is hard enough, given that
I don't know ObjC; writing Perl code from them is still a bit beyond me
(but getting closer :-).  Thanks...


OK; here's another silly question.  I found this useful-looking method:

  - (void)selectFirstTabViewItem:(id)sender

  Selects the first tab view item.

It looks like I can use this to control the tab that gets set by default
when the app starts up.  If so, how (and where) do I call it?  If not,
how am I supposed to set the default?

-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm    - my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc     - Prime Time Freeware's Darwin Collection

Reply via email to