• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSView not resizing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView not resizing


  • Subject: Re: NSView not resizing
  • From: "Boisy G. Pitre" <email@hidden>
  • Date: Sat, 14 May 2005 06:04:07 -0500


On May 13, 2005, at 7:43 PM, email@hidden wrote:

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

  • Prev by Date: RAM Location and Size in 64bits Machines
  • Next by Date: Re: NSView not resizing
  • Previous by thread: Re: NSView not resizing
  • Next by thread: Data model object sizes...
  • Index(es):
    • Date
    • Thread