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 (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/archive%40mail-archive.com This email sent to arch...@mail-archive.com