• 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
Evil setFrame:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Evil setFrame:
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Image classes (Re: How to detect a Retina Mac)
  • Next by Date: Re: Evil setFrame:
  • Previous by thread: Re: Image classes (Re: How to detect a Retina Mac)
  • Next by thread: Re: Evil setFrame:
  • Index(es):
    • Date
    • Thread