NSTabView Problems
NSTabView Problems
- Subject: NSTabView Problems
- From: Matt Massicotte <email@hidden>
- Date: Sat, 9 Mar 2002 15:05:32 -0500
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.
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.
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.