• 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: Shiny little square buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shiny little square buttons


  • Subject: Re: Shiny little square buttons
  • From: Nik Youdale <email@hidden>
  • Date: Mon, 3 Jul 2006 00:13:31 +1000

Hmmm...

Ok.. well it looks like a custom view is the best option then. One question though, is it possible to "cover" a view with a translucent black rectangle to the give the "pressed" look of a button? If I could do this I would be pretty much set. I tried using NSRectFill() in the drawRect method, using a translucent color, but that didn't work.

- Nik

On 02/07/2006, at 11:40 PM, Jeremy Dronfield wrote:

The inspector tabs in Pages are an NSMatrix of NSButtonCells using (in most cases) only 2 images for each cell - "normal" and "selected".


(Personally, if I were doing this, I'd dispense with the background images and draw the gradients in code in a custom cell subclass. The reason being re-usability - it's easier to vary the colours, sizes and background shapes for different requirements.)

Regards,
Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ 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: Shiny little square buttons
      • From: Uli Kusterer <email@hidden>
    • Re: Shiny little square buttons
      • From: Andy Lee <email@hidden>
References: 
 >Shiny little square buttons (From: Nik Youdale <email@hidden>)
 >Re: Shiny little square buttons (From: Jeremy Dronfield <email@hidden>)

  • Prev by Date: Re: Selected range in bound text view
  • Next by Date: Re: Shiny little square buttons
  • Previous by thread: Re: Shiny little square buttons
  • Next by thread: Re: Shiny little square buttons
  • Index(es):
    • Date
    • Thread