Re: NSView not resizing when parent view resizes
Re: NSView not resizing when parent view resizes
- Subject: Re: NSView not resizing when parent view resizes
- From: Michael Becker <email@hidden>
- Date: Tue, 7 Dec 2004 17:58:02 +0100
Am 07.12.2004 um 03:06 schrieb Michael Becker:
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).
I tried making the NSViews custom classes, where in their -drawRect:
method I first set their size to be that of their respective superview.
This works theoretically, but in practice I have very sloppy drawing.
In fact, sometimes when I resize the window to be bigger, parts of the
views won't be drawn. On the next invocation of their drawRect (e.g.
when I click on them) they draw correctly.
What is happening? How can I make them resize smoothly according to
their superviews?
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