FROM : Nik Youdale
DATE : Sun Jul 02 16:13:31 2006
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/nik.youdale%
> 40gmail.com
>
> This email sent to nik.<email_removed>
DATE : Sun Jul 02 16:13:31 2006
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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/nik.youdale%
> 40gmail.com
>
> This email sent to nik.<email_removed>
| Related mails | Author | Date |
|---|---|---|
| Nik Youdale | Jul 2, 13:54 | |
| Jeremy Dronfield | Jul 2, 15:40 | |
| Nik Youdale | Jul 2, 16:13 | |
| Andy Lee | Jul 2, 16:43 | |
| Uli Kusterer | Jul 3, 11:23 | |
| Nik Youdale | Jul 3, 12:13 | |
| Uli Kusterer | Jul 3, 13:06 | |
| George Orthwein | Jul 3, 16:23 | |
| Gerd Knops | Jul 3, 21:04 | |
| Ricky Sharp | Jul 3, 22:28 | |
| Uli Kusterer | Jul 4, 02:20 |






Cocoa mail archive

