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 (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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to