I'm trying to figure out how the content magnification of NSScrollView works:
I have a NSScrollView, in which I'm trying to add a NSView which contains a NSTextField.
I create the NSView with the text field and add it to the NSScrollView document view (scrollView.documentView addSubview:...), so I end up with the following:
NSScrollView.documentView -> NSView -> NSTextField
When the magnification changes on the NSScrollView, the NSView is automatically resized, and the bounds / clicking area of the NSTextField are also resized, but the actual NSTextField doesn't resize: (those red outlines are the are where the cursor will change if I mouse over / where I have to click to start editing, so that is actually scaling properly somehow)



If I skip the NSView, and add the NSTextField directly to the NSSCrollView.documentView, I get a similar "effect" where the actual text / textfield will scale, but not the focus ring:

It looks like whatever is directly "below" the NSScrollView.documentView will scale properly, but not its subviews?
I tried setting autoresizing masks and autoresizessubviews->TRUE everywhere but to no avail...
What am I doing wrong?
Thanks for the help!