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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]