• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTabView Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSTabView Problems
      • From: Chuck Pisula <email@hidden>
  • Prev by Date: Standard Toolbar Icons?
  • Next by Date: Re: OutlineView data source method
  • Previous by thread: Re: Standard Toolbar Icons?
  • Next by thread: Re: NSTabView Problems
  • Index(es):
    • Date
    • Thread