Evil setFrame:
Evil setFrame:
- Subject: Evil setFrame:
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sun, 08 Sep 2013 11:36:08 +0700
I try to show a nib (which uses autolayout and which contains among other things a NewView inside an NSClipView inside an NSScrollView ) like this:
if ( self.neuWindowController == nil )
{
// NewWindowController is subclass of NSWindowController
self.neuWindowController = [ [NewWindowController alloc] initWithWindowNibName: @"SomeNib"
eventsList: someArray
];
};
[ self.neuWindowController showWindow: nil ];
The last line triggers in my NewView:
-[NewView resizeWithOldSuperviewSize:] NewView 0x101982430 bounds {{0, 0}, {437, 252}}
-[NewView resizeWithOldSuperviewSize:] NewView 0x101982430 frame {{0, 0}, {437, 252}}
-[NewView resizeWithOldSuperviewSize:] NSClipView 0x10197b8e0 bounds {{0, 0}, {398, 94}}
-[NewView resizeWithOldSuperviewSize:] will call super with oldBoundsSize {437, 254}
-[NewView setFrame:] will {{0, 0}, {0, 0}} ← why is super doing this to me ??
-[NewView resizeWithOldSuperviewSize:] got frame {{0, 0}, {0, 0}}
and from here on nothing works (not too surprising with such a small frame).
Something must be terrible wrong in my setup of NewView, but what?
Gerriet.
_______________________________________________
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