views:

37

answers:

0

I created an NSWindow object in IB which contains some textFields and buttons at the top and an NSTextView beneath them. I then reduced the window height so as to hide the textView from sight when the window is initially opened. What I'm trying to do is to resize the window height programatically (thus exposing the textView) if any data was found relating to the textField inputs.

The animated window resizing code turned out to be remarkably easy, but when the window is resized the entire content view is pushed down the window, with the textFields and buttons now visible at the bottom edge and the textView still out of sight further down.

I've tried maintaining each window element in fixed positions using the springs and locks etc. in IB's Inspector without (good) effect. Is there any way I can 'pin' the content view at the top-left, please?

Uhhh, sorry guys -- problem solved! After some more messing in IB, I discovered that I was setting the wrong (inner) springs for each control/textView instead of the outer ones and the window now works perfectly. It's all just down to my inexperience :-( Thanks again for your attention though. The excellent help I've had from this community is always appreciated.