• 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: How to draw a Recessed Button Shadow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to draw a Recessed Button Shadow


  • Subject: Re: How to draw a Recessed Button Shadow
  • From: "Dalzhim Dalzhim" <email@hidden>
  • Date: Tue, 21 Oct 2008 09:55:12 -0400

Hello Rob,

I have already tried the methods you mention and they draw the gray opaque
background that I want to get rid of so that I can make the highlight a
different color, as well as drawing the arrow images.  Although the gray
opaque background is the same as when you put the mouse over the filters in
XCode's documentation rather than when a filter is selected.  You'll notice
the rollover style doesn't have any shadow while the selected filter does
have a shadow.  This is the one that I wish to reproduce.

regards


-Dalzhim

2008/10/20 Rob Keniger <email@hidden>

>
> On 21/10/2008, at 4:34 AM, Dalzhim Dalzhim wrote:
>
>  I am currently trying to subclass NSPopUpButton while keeping
>> compatibility
>> with Mac OS 10.4 in order to add the possibility of choosing the color of
>> the highlight when the mouse is placed over the button, including gradient
>> fills.  The problem is that neither NSPopUpButton or NSPopUpButtonCell
>> seem
>> to provide public methods to draw the border of the button or the image
>> with
>> the arrows.  Only the title of the button can be drawed using a public
>> method while handling the rest of the drawing in a subclass.
>>
>
>
> NSPopupButtonCell is a subclass of NSMenuItemCell, which is itself a
> subclass of NSButtonCell. This means that it inherits all the methods of
> those classes. Have a look at:
>
> - (void)drawBezelWithFrame:(NSRect)frame inView:(NSView *)controlView
> - (void)drawBorderAndBackgroundWithFrame:(NSRect)cellFrame inView:(NSView
> *)controlView
>
> and friends.
>
> --
> Rob Keniger
>
>
>
> _______________________________________________
>
> 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
>
_______________________________________________

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 a Recessed Button Shadow
      • From: "Kyle Sluder" <email@hidden>
References: 
 >How to draw a Recessed Button Shadow (From: "Dalzhim Dalzhim" <email@hidden>)
 >Re: How to draw a Recessed Button Shadow (From: Rob Keniger <email@hidden>)

  • Prev by Date: Re: Properly supporting 'delete' key presses in NSTableView
  • Next by Date: Toolbar buttons and isEnabled binding
  • Previous by thread: Re: How to draw a Recessed Button Shadow
  • Next by thread: Re: How to draw a Recessed Button Shadow
  • Index(es):
    • Date
    • Thread