Re: NSTabView Problems
Re: NSTabView Problems
- Subject: Re: NSTabView Problems
- From: Chuck Pisula <email@hidden>
- Date: Tue, 12 Mar 2002 19:12:55 -0800
On Saturday, March 9, 2002, at 12:05 PM, Matt Massicotte wrote:
Hi guys,
I'm using a NSTabView that has tabs added and deleted a lot. Very
similar to Limewire's interface, if you are familiar with it.
My problem is that the method removeTabViewItem returns an array out of
bounds exception in two (really weird) situations.
1) removing the last (rightmost) TabViewItem
2) removing the first TabViewItem when there are only two tabs.
Maybe it happens when you are removing the selected tab? maybe you have
to unselect it first. I'd log a bug. This seems wierd to me though, it
seems to work with NO problems in the IB application.
Does anyone have any insight on why this happens? It might have to do
with how I'm adding the tabs, but all I do is create a NSTabViewItem
instance and add that to the view.
Another weirdness is that it seems that the view doesn't like having
zero tabs, so I start the view off with a placeholder tab, and modify
it's label, identifier, and view. This might have something to do with
it also.
Seems reasonable to me that NSTabView requires atleast 1 tab. If you
want no tabs, you should probably use the NSNoTabsBezelBorder style.
-c
Thanks,
Matt Massicotte
_______________________________________________
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.
_______________________________________________
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.