• 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: Hiding tab view items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding tab view items


  • Subject: Re: Hiding tab view items
  • From: BareFeet <email@hidden>
  • Date: Mon, 19 Oct 2009 14:18:50 +1100

there a different roots to success....

Thanks for the input.

a) roll your own Tabs instead of Segmented cell in combination with a tabless NSTabView

Do you mean use a segmented control with a tabless NSTabView, where each segmented cell is linked to a tab view?


I have set that up, but can't see a way to hide a segmented cell. I can turn off the "enabled" flag (in Interface Builder of via the accessor method), but there doesn't appear to be a "hidden" flag. I thought I might be able to set the width to zero, but the documentation says:

setWidth:forSegment:

The width of the segment, measured in points. Specify the value 0 if you want the segment to be sized to fit the available space automatically.

So I guess I'll have to build the segmented control dynamically from scratch each time I want to hide a segmented cell, just leaving out that cell in the rebuild.


b) Add/remove tab items on demand

That sounds similar to above. However, I feel more comfortable rebuilding just a segmented cell than trying to delete and rebuild a whole view.


Seems messy either way though.

Thanks,
Tom
BareFeet

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Hiding tab view items
      • From: BareFeet <email@hidden>
References: 
 >Hiding tab view items (From: BareFeet <email@hidden>)
 >Re: Hiding tab view items (From: Volker in Lists <email@hidden>)

  • Prev by Date: Re: video DVD burn on Mac OS X?
  • Next by Date: OSX have that is equivalent to WaitMessage() Win32 API
  • Previous by thread: Re: Hiding tab view items
  • Next by thread: Re: Hiding tab view items
  • Index(es):
    • Date
    • Thread