I have NSSplitView
with NScrollView
inside it and view-based NSOutlineView
inside NSScrollView
, it has e.g. one column. My outline view must be scrollable vertically only and it must consider minimal width of column content to fit it. I think they must return -(NSSize)fittingSize
with values {minColumnWidth, 0}
, but it returns {0,0}. How can I do that?
Asked
Active
Viewed 538 times
2

Igor Bulgakov
- 173
- 8
1 Answers
0
Try to return the desired view size in (NSSize)intrinsicContentSize
. I am not sure if I totally understand your scenario. You could add a screenshot or wireframe to make it easier to understand the setup. Whatsoever, take a look at my question dealing with a similar problem.
Maybe also check out the WWDC Session 232 - Auto Layout by Example. It covers a new split view API together with Autolayout (starting around 41:00 minutes).
-
Sorry, I can't clarify that right now, but if I remember correctly problem is that I can not get proper fitting width of outline view and -(NSSize)intrinsicContentSize didn't help me. I'll answer later. – Igor Bulgakov Oct 31 '12 at 06:50