• 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
[CA] Create a "A la FrontRow" Button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[CA] Create a "A la FrontRow" Button


  • Subject: [CA] Create a "A la FrontRow" Button
  • From: Paul Arthur Henrion <email@hidden>
  • Date: Thu, 6 Dec 2007 00:01:41 +0100

Hi there,

first of all, I'm sorry for my double mailing: I did not know which list was more appropriate for this question, because it's about CoreAnimation, so it's Cocoa related and also Quartz(Core) related.

By the way, here is what I want to do: create a "à la FrontRow" button (the highlighting rectangle below the current selection).

In order to do so I thought I'd create a CALayer subclass which would contain two gradients -- one for the button top, the other for the bottom -- to create a gloss effect and a outline light. I thought I could use CIFilters to create these "effects" (CILinearGradient and CIBloom), but it isn't that easy (well, I think I just don't use them correctly): the two CILinearGradient I create are applied on the layer as "backgroundFilters" (if they are applied as -- foreground -- "filters" they don't appear) and the CIBloom, as a -- foreground -- "filters" (and doesn't appear).

I think that if my filters don't appear when they're applied as foreground filters it's because my layer is empty -- which is logical :'). So do I have to provide a "fake" contents to my layer (as a transparent 1 square pixel picture streched to my layer bounds)? Or is there a smarter way to create my "à la FrontRow" button layer?

So how would you do?

Thanks for any help,

Paul_______________________________________________

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: [CA] Create a "A la FrontRow" Button
      • From: Scott Anguish <email@hidden>
    • Re: [CA] Create a "A la FrontRow" Button
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: Leopard NSTableView Cell and single click editing
  • Next by Date: Re: Canonical way of loading compound UI components from a NIB into some other UI?
  • Previous by thread: Re: Canonical way of loading compound UI components from a NIB into some other UI? [SOLVED?]
  • Next by thread: Re: [CA] Create a "A la FrontRow" Button
  • Index(es):
    • Date
    • Thread