My fault. I was sure, that I have checked everything and nothing. I have made a new empty Xcode project and that worked. Finally I have found strange bug in my NSScrollView subclass. Fixed it and looks like everything is OK now.
Thank you. Best Regards, Rimas M. On Fri, Jul 23, 2010 at 4:39 PM, Steve Christensen <puns...@mac.com> wrote: > 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com