• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSBox addSubview positioning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSBox addSubview positioning (From: Will Koffel <email@hidden>)

  • Prev by Date: NSArray saveToFile: atomically does not work
  • Next by Date: Re: statically linking one of my framework to a foundation tool
  • Previous by thread: NSBox addSubview positioning
  • Next by thread: NSHost currentHost Slow
  • Index(es):
    • Date
    • Thread