• 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 when parent view resizes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSView not resizing when parent view resizes
      • From: Ricky Sharp <email@hidden>
References: 
 >NSView not resizing when parent view resizes (From: Michael Becker <email@hidden>)

  • Prev by Date: Found! Click, activate window and select an object
  • Next by Date: Looking pretty / adhering to control tints
  • Previous by thread: NSView not resizing when parent view resizes
  • Next by thread: Re: NSView not resizing when parent view resizes
  • Index(es):
    • Date
    • Thread