[SOLVED] Re: NSView not resizing when parent view resizes
[SOLVED] Re: NSView not resizing when parent view resizes
- Subject: [SOLVED] Re: NSView not resizing when parent view resizes
- From: Michael Becker <email@hidden>
- Date: Thu, 9 Dec 2004 15:14:20 +0100
Am 09.12.2004 um 14:26 schrieb Louis C. Sacha:
NSBox instances use an instance of NSView as a content view, so you
probably don't want to directly add your custom view as a subview of
the NSBox.
Aaaah! Okay, thank you! I completely missed that :-) Alright. Thanks a
lot.
[[container contentView] addSubview:yourCustomView];
I'm doing it now by going with:
[ container setContentView:myCustomView];
which works like a charm :-) Thanks!
Cheers,
Michael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden