NSView not resizing when parent view resizes
NSView not resizing when parent view resizes
- Subject: NSView not resizing when parent view resizes
- From: Michael Becker <email@hidden>
- Date: Tue, 7 Dec 2004 03:06:59 +0100
Hi!
Here's something that bothers me: In my application, I have a custom
NSBox which holds an NSView. This NSView is again filled with a couple
of controls (TableView, Buttons, etc.). The NSView is defined in
Interface Builder and programmatically hooked to the NSBox subclass
(actually i have several of these NSViews, changing them
programmatically).
Although all size attributes are set correctly (AFAICS) in Interface
Builder, the NSView does not seem to resize when the NSBox resizes.
Programmatically, I simply use -addSubview: to make the NSView a child
of the custom NSBox. Is there anything else I might be missing?
In my NSBox subclass I have implemented the method
-(BOOL)autoresizeSubviews to return YES, doesn't seem to do anything.
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