• 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
Standard controls on top of NSGradients
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Standard controls on top of NSGradients


  • Subject: Standard controls on top of NSGradients
  • From: Charles Burnstagger <email@hidden>
  • Date: Mon, 5 Apr 2010 12:15:13 -0700 (PDT)

I have a custom NSView subclass that contains an NSGradient. All this class does is draw a grey vertical gradient like iPhoto and iTunes do.

When I place standard controls on top of one of my custom gradient views, when clicked, they also draw their rects with the same gradient - even though I don't include any code to do that. Do I need to lockFocus or some other aspect of CG on my custom view before I draw my gradient in my view's drawRect: method?

Thanks,

Chuck




_______________________________________________

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: Standard controls on top of NSGradients
      • From: David Duncan <email@hidden>
  • Prev by Date: Bindings & ivars
  • Next by Date: Re: Standard controls on top of NSGradients
  • Previous by thread: Re: Bindings & ivars
  • Next by thread: Re: Standard controls on top of NSGradients
  • Index(es):
    • Date
    • Thread