• 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
Re: NSTabView Problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSTabView Problems (From: Matt Massicotte <email@hidden>)

  • Prev by Date: Re: NSTextField refreshes are wacky.
  • Next by Date: Re: NSTextField refreshes are wacky.
  • Previous by thread: NSTabView Problems
  • Next by thread: Re: NSTabView Problems
  • Index(es):
    • Date
    • Thread