Re: Subview display problem
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