Re: NSBox addSubview positioning
Re: NSBox addSubview positioning
- Subject: Re: NSBox addSubview positioning
- From: Guy English <email@hidden>
- Date: Tue, 4 Jan 2005 11:58:03 -0500
call setFrame: on your views.
the position: relativeTo: method your calling is to set the views
z-order - ie Bring To Front, Send To Back.
On Tue, 4 Jan 2005 00:09:05 -0500, Will Koffel <email@hidden> wrote:
>
> I'm having a problem when adding subViews to an NSBox (in a sheet, if
> it matters).
>
> The position of the added subview is always at the bottom left of the
> NSBox. And if I add further views, even using
> 'position:NSWindow[Below|Above] relativeTo:firstAddedView' , the new
> view overlaps the first.
>
> In my case, the views being added are multiple instances of the same
> view, being loaded individually from a NIB file on a button press.
> Every time I press the button, another view overlays the first.
>
> Any suggestions would be most welcome! I'm still learning to get
> around Cocoa/IB.
>
> -Will
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden