I've got a NSView that I'm inserting into another NSView that is in a nib file using:
That all goes fine and it appears in the IB NSView perfectly. However the subview is stuck to point (0, 0) in the superview when I want it to fill the whole of the superview. I've tried setting the 'springs and struts' of just about everything in IB but it still won't fill the whole view (the subview does resize, it just doesn't fill the whole superview).
Does anybody know how to solve this? I'll post my app/code if wanted.
Thanks
Code:
- (void)addSubview:(NSView *)aView
That all goes fine and it appears in the IB NSView perfectly. However the subview is stuck to point (0, 0) in the superview when I want it to fill the whole of the superview. I've tried setting the 'springs and struts' of just about everything in IB but it still won't fill the whole view (the subview does resize, it just doesn't fill the whole superview).
Does anybody know how to solve this? I'll post my app/code if wanted.
Thanks