• 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: UI elements in custom view mess up drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI elements in custom view mess up drawing


  • Subject: Re: UI elements in custom view mess up drawing
  • From: Antonio Nunes <email@hidden>
  • Date: Tue, 14 Oct 2008 15:16:45 +0100

On 14 Oct 2008, at 14:43, Benjamin Stiglitz wrote:

The rect passed to -[NSView drawRect:] is the dirty rect of the view,
not the bounds of the view. The changing subviews are dirtying your view
and then you're drawing as if that changed area was your complete frame.


Try replacing your use of rect with -[NSView bounds] instead

Argh! I had a sinking feeling my brain was muddled up. It works now (the view that is, not sure about the brain ;-). Thanks!


-António

----------------------------------------------------
It is better to light a candle than to curse the darkness
----------------------------------------------------



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >UI elements in custom view mess up drawing (From: Antonio Nunes <email@hidden>)
 >Re: UI elements in custom view mess up drawing (From: Benjamin Stiglitz <email@hidden>)

  • Prev by Date: Re: NSBrowser, NSTreeController and Core Data
  • Next by Date: EXC_BAD_ACCESS with NSAutoReleasePool, NSThread and NSThreadWillExitNotification
  • Previous by thread: Re: UI elements in custom view mess up drawing
  • Next by thread: Re: UI elements in custom view mess up drawing
  • Index(es):
    • Date
    • Thread