I have a NSTabView with a number of NSView items. I want to resize the tab view so that the displayed view always fits snugly within the tab view.
I've tried a number of variations of setFrame within the tabView's delegate didSelectTabViewItem and shouldSelectTabViewItem but can't seem to get it to work. I think I have to change the size of the tabView's contentRect, but this seems to be readonly.
Can anyone please give me a quick pointer to perhaps where this has been done before (I'm having no luck with Google).
Thanks,
John