• 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
Re: Subview display problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subview display problem


  • Subject: Re: Subview display problem
  • From: Patrick Mau <email@hidden>
  • Date: Tue, 28 Oct 2008 16:21:35 +0100

Hi DKJ,

On 28.10.2008, at 14:23, DKJ wrote:

I'm having no luck getting a subview to display. In the awakeFromNib of the controller I have this:

	helpView = [[MyView alloc] init];
	[helpView setFrameOrigin:RectCentre( [theView frame] )];
	[helpView setFrameSize:NSZeroSize];
	[theView addSubview:helpView];


You are adding the subview to 'theView', but I cannot see how you initialized it.
Can you check wether 'autoresizesSubviews' for 'theView' returns YES or NO?


Maybe your sub-views are resized based on the 'theView' setting for 'autoresizeMask' and
this disturbs the animation.


Check the NSView documentation for 'setAutoresizeSubViews' and 'autoresizeMask'.

I'm just guessing though.

Best regards,
Patrick
_______________________________________________

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


References: 
 >Subview display problem (From: DKJ <email@hidden>)

  • Prev by Date: Re: Can we ask iPhone questions yet?
  • Next by Date: NSTableView context dependent row colors
  • Previous by thread: Re: Subview display problem
  • Next by thread: filtering a tableView from a pulldown
  • Index(es):
    • Date
    • Thread