I am using an NSTabView
in an application inside a resizable window.
The number of tabs and their titles are variable, so I would like to determine the width of the segment control at the top.
I have tried adding up the tab item's [item sizeOfLabel:FALSE]
but there seems to be extra space involved (the sum of values returned is less than the actual width).
Also the frame
property of the item's view
( [[item view] frame]
) appears to have an arbitrary size.
Any ideas?