• 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
How to reposition subviews without Auto Layout
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to reposition subviews without Auto Layout


  • Subject: How to reposition subviews without Auto Layout
  • From: Andreas Falkenhahn via Cocoa-dev <email@hidden>
  • Date: Sat, 17 Oct 2020 14:57:55 +0200

Hi,

I have an NSView that I set as the content view of my NSWindow. The NSView has
three subviews. Where should I reposition and resize those three subviews when
the NSWindow size changes?

I see that NSView has a "layout" method that can be overridden but AFAIU this
is only to be used for Auto Layout. I don't want to use Auto Layout because my
whole layout is very simplistic and just involves those three subviews which I
can easily position and size manually. I just need to know where to put the
code that sets their new position and size... anyone?

--
Best regards,
 Andreas Falkenhahn                          mailto:email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to reposition subviews without Auto Layout
      • From: じょいすじょん via Cocoa-dev <email@hidden>
    • Re: How to reposition subviews without Auto Layout
      • From: Richard Charles via Cocoa-dev <email@hidden>
  • Prev by Date: Re: Throttling drawing to vertical refresh
  • Next by Date: Re: How to reposition subviews without Auto Layout
  • Previous by thread: Re: Throttling drawing to vertical refresh
  • Next by thread: Re: How to reposition subviews without Auto Layout
  • Index(es):
    • Date
    • Thread