• 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: Transparent IKImageBrowserView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transparent IKImageBrowserView


  • Subject: Re: Transparent IKImageBrowserView
  • From: Steve Christensen <email@hidden>
  • Date: Fri, 23 Jul 2010 06:39:00 -0700

This worked for me:

NSColor* browserBackgroundColor = [NSColor colorWithCalibratedWhite:0.10 alpha:0.60];

[_effectsBrowser setValue:browserBackgroundColor forKey:IKImageBrowserBackgroundColorKey];


Are you sure that it's not working for you? Perhaps a superview has a non-transparent background itself and that's what you're seeing?


On Jul 23, 2010, at 12:04 AM, Rimas M. wrote:

> Hello,
>
> As far as I know, it is still impossible to have transparent
> background of IKImageBrowserView?
> I am writing to be 100% sure for that. Maybe I have missed something?
>
> All my attempts to create transparent IKImageBrowserView failed.
>
> I have tried:
>
> * (1) setting background color for IKImageBrowserView as itself using
> IKImageBrowserBackgroundColorKey. That works well until color alpha is
> equal to 1.0. Bellow that color is ignored (color does not change) or
> background is changed back to default white. Or... looks like given
> color is composited on a white background.
> * setting CALayer as IKImageBrowserView's backgroundLayer:
>   ** (2) using property backgroundColor of CALayer. No background
> transparency, scrolling ghosts, misc garbages during start-up - some
> parts of menubar, other windows are visible for a few moments after
> program launch.
>   ** using custom drawing ( -
> (void)drawInContext:(CGContextRef)context ) in CALayer subclass:
>      *** (3) drawing transparent image to fill background. No
> transparency for IKImageBrowserView, some strange ghosts while
> scrolling.
>      *** (4) filling background with transparent color (alpha < 1.0).
> Behaves close to previous variant. "Size" of ghosts depends on alpha
> value.
>
> On 3 and 4, flushing context or telling it to clear visible rect makes no sense.
>
> Best Regards,
>
> Rimas M.

_______________________________________________

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: Transparent IKImageBrowserView
      • From: "Rimas M." <email@hidden>
References: 
 >Transparent IKImageBrowserView (From: "Rimas M." <email@hidden>)

  • Prev by Date: Re: Array controllers in code?
  • Next by Date: Re: draw NSAttributedstring with transparency
  • Previous by thread: Transparent IKImageBrowserView
  • Next by thread: Re: Transparent IKImageBrowserView
  • Index(es):
    • Date
    • Thread