site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=F7O5BD0/V5I2ULBtPmNA6APu8RpsMbjRmff9WEr5kk4=; b=DisfPI8FvOabs//SWtQ0aTI4qRBAnhOgCBG0R7t0ZmHyLy12/zowyT7+07Z3m5iT0e +A+bav0+Nw/RVDxkZ9bqHvLNgXjCz2CjEBwxbMX38W+P5yLf9Y6nqxJzHGozztk23wlw gMQXo2N0VAJwU4MjuFbkQsInYpEJU2no/Lb2nCZsc/ZFX6CEIwJRx45qrbGO5M8cgx9B 9C3PeIpTZ8vLv9xARP8kafpbm8JQIDW6+3AyKYF+cmMNOmAP+bGuEL+kNTuvTYVdOe2w XmR7+NSj2zAm31lcTyU2EbfT3uWHutVlh77fOYAsh57YzlNn51yMx2/mu/iGMPfwrT41 +rkw==
On Nov 4, 2022, at 23:05, Steve Christensen via Cocoa-dev <cocoa-dev@lists.apple.com> wrote:
The view hierarchy doesn’t go through a layout pass until after it is added to a live view or window. At awakeFromNib time it’s still essentially a snapshot of the layout in the nib since it hasn’t yet been inserted into the “context” that will allow the layout engine to determine how big all the views actually need to be.
Would an offscreen view or window allow it to be laid out and examine prior to insertion in a live view/window? Assuming this was necessary… of course. Sandor
On Nov 3, 2022, at 5:39 PM, Eyal Redler via Cocoa-dev <cocoa-dev@lists.apple.com> wrote:
I have a view in a nib, the constraints are setup so that the view should expand/contract to fit the contents and the nib is localized for several languages. When I check the frame size of the view in awakeFromNib the size I get is the same as the size set in the nib. I tried forcing the view to resize by calling layout but this didn't change the frame size. Is there a way to force the view to resize, before putting it on the screen?
TIA
Eyal Redler ------------------------------------------------------------------------------------------------ "If Uri Geller bends spoons with divine powers, then he's doing it the hard way." --James Randi www.eyalredler.com
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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: https://lists.apple.com/mailman/options/cocoa-dev/admin.szatmari.net%40gmail...
This email sent to admin.szatmari.net@gmail.com
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com