• 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
How to draw over a control in an NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to draw over a control in an NSView


  • Subject: How to draw over a control in an NSView
  • From: Alexander Reichstadt <email@hidden>
  • Date: Sun, 30 Oct 2011 20:46:56 +0100

Hi,

given a custom NSView using drawRect to draw, say, a blue rectangle, controls inside that view are always in front of the blue rectangle. Is there a way to draw above controls with drawRect? Also putting a view with controls inside another view that draw in drawRect doesn't change that. Like textfields, they are always above drawn content. How does one draw above controls?

Thanks
Alex

_______________________________________________

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

  • Follow-Ups:
    • Re: How to draw over a control in an NSView
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Versions and project editor app
  • Next by Date: Re: How to draw over a control in an NSView
  • Previous by thread: Re: C struct and __unsafe_unretained
  • Next by thread: Re: How to draw over a control in an NSView
  • Index(es):
    • Date
    • Thread