Re: NSView not resizing
Re: NSView not resizing
- Subject: Re: NSView not resizing
- From: "Boisy G. Pitre" <email@hidden>
- Date: Sat, 14 May 2005 06:04:07 -0500
I believe that after you set the NSView's size with -setBounds and -setFrame, you should call either -setNeedsDisplay: YES or just -display. I've run across the same problem before with custom NSView's not redrawing until they get sent one of those two messages. ~Anthony Duer
Thanks guys for the suggestions so far. I added the [self setNeedsDisplay:YES]; call at the end of my didAddSubview method and it had no effect.
Some additional information: The addSubview call that I am making is being called from my document's method:
- (void)windowControllerDidLoadNib:(NSWindowController *)aController
Now, at this point the window has not appeared yet. So doing the -setNeedsDisplay or display is probably not necessary since the window has yet to be drawn.
So is it ok to resize an NSView that hasn't been displayed yet?
|
_______________________________________________
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