Re: Transparent Image with Tint Color
If you're targeting iOS 7, then you should take a look at WWDC session 214 (Customizing Your App’s Appearance for iOS 7). It talks about using the method on UIImage called imageWithRenderingMode:, which lets you use the tintColor property to tint your generic images in code. If you're targeting iOS 6 and below, then check out the tutorial by thoughtbot that uses blending modes to colour an image. http://robots.thoughtbot.com/post/46668544473/designing-for-ios-blending-modes Hope that helps, Cai On 29 September 2013 16:15, Paul Scott psc...@skycoast.us wrote: I have an image file—created in Photoshop, anti-aliasd against a transparent background—that I would like colorized using the same tint color used in the navigation bar. Is there a way to colorize this pre-drawn image programmatically? -- Paul Scott psc...@skycoast.us ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/cai.durbin%40gmail.com This email sent to cai.dur...@gmail.com ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Transparent Image with Tint Color
Sent from my iPhone On 2013/09/30, at 11:37, Paul Scott psc...@skycoast.us wrote: On Sep 29, 2013, at 6:54 PM, Kyle Sluder k...@ksluder.com wrote: How do I get an image rendered in the tint color? Start a bitmap context, set your template image as the image mask, set the full color to the appropriate tintColor, and fill the bounds of the context. Construct a data URI out of the image you get by closing the bitmap context. That works. Thanks. I was already heading down that path, since it seemed kind of obvious after thinking about it. Nevertheless, there are some strange and non-obvious dependencies that exist with various Cocoa and CG objects that aren't particularly well documented, such as [colorObject setFill]; I mean, what kind of magic happens there? Normally, I'd expect an instance method to operate on the receiver; but by this incantation the graphics context is involved. Yes this is unusual in Cocoa and Cocoa touch. I thought the same thing the first time. These are actually Objective-C wrappers around Core Graphics (Quartz) functions. They mainly make sense when you learn about how CG works and that these are actually setting parameters of the graphics state of the current graphics context in Quartz. Unfortunately it's a winding road to learn and know this. I recommend highly the dates but still VERY well explained book Programming With Quartz: 2D and PDF Graphics in Mac OS X Yes, I've got some learning ahead of me. In any case, for anyone who cares, this code (in the webViewDidFinishLoad: method) worked: UIImage *image = [controller.infoIcon.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; UIGraphicsBeginImageContext(image.size); CGContextRef context = UIGraphicsGetCurrentContext(); CGRect rect = CGRectMake(0, 0, image.size.width, image.size.height); CGContextSetBlendMode(context, kCGBlendModeNormal); CGContextDrawImage(context, rect, image.CGImage); CGContextSetBlendMode(context, kCGBlendModeColor); [[webView tintColor] setFill]; CGContextFillRect(context, rect); CGContextSetBlendMode(context, kCGBlendModeDestinationIn); CGContextDrawImage(context, rect, image.CGImage); image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); NSString *data = [UIImagePNGRepresentation(image) base64EncodedStringWithOptions:nil]; [webView stringByEvaluatingJavaScriptFromString: [NSString stringWithFormat:@%@%@%@, @( function() { @var x = document.getElementById('infoIcon'); @if ( !! x ) { @x.src = 'data:image/png;base64,, data, @'; @} @})(); ] ]; Paul __ ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Transparent Image with Tint Color
I have an image file—created in Photoshop, anti-aliasd against a transparent background—that I would like colorized using the same tint color used in the navigation bar. Is there a way to colorize this pre-drawn image programmatically? -- Paul Scott psc...@skycoast.us smime.p7s Description: S/MIME cryptographic signature ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Transparent Image with Tint Color
Thanks, guys! That did the trick; exactly what I needed for iOS 7 app update, and so simple! I will watch session 214 to garner what other gems might have been presented. I *did* read the iOS 7 UI Transition Guide—which I just now verified discusses UIImageRenderingModeAlwaysTemplate—but somehow I missed that; probably because I glossed over it at the time not realizing I'd need it. Paul On Sep 29, 2013, at 1:24 PM, Hunter Hillegas li...@lastonepicked.com wrote: On iOS? If I’m understanding correctly, you want [UIImage imageWithRenderingMode:] and picking UIImageRenderingModeAlwaysTemplate. On Sep 29, 2013, at 1:27 PM, Cai Durbin cai.dur...@gmail.com wrote: If you're targeting iOS 7, then you should take a look at WWDC session 214 (Customizing Your App’s Appearance for iOS 7). It talks about using the method on UIImage called imageWithRenderingMode:, which lets you use the tintColor property to tint your generic images in code. If you're targeting iOS 6 and below, then check out the tutorial by thoughtbot that uses blending modes to colour an image. http://robots.thoughtbot.com/post/46668544473/designing-for-ios-blending-modes Hope that helps, ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Transparent Image with Tint Color
There are many kinds of image files. Which kind is it? On Sep 29, 2013, at 4:15 PM, Paul Scott wrote: I have an image file—created in Photoshop, anti-aliasd against a transparent background—that I would like colorized using the same tint color used in the navigation bar. Is there a way to colorize this pre-drawn image programmatically? -- Paul Scott psc...@skycoast.us ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/zav%40mac.com This email sent to z...@mac.com ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Transparent Image with Tint Color
Must be a PNG no? On Sep 29, 2013, at 5:16 PM, Alex Zavatone z...@mac.com wrote: There are many kinds of image files. Which kind is it? On Sep 29, 2013, at 4:15 PM, Paul Scott wrote: I have an image file—created in Photoshop, anti-aliasd against a transparent background—that I would like colorized using the same tint color used in the navigation bar. Is there a way to colorize this pre-drawn image programmatically? -- Paul Scott psc...@skycoast.us ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/zav%40mac.com This email sent to z...@mac.com ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/edolecki%40gmail.com This email sent to edole...@gmail.com ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Transparent Image with Tint Color
Indeed, it is. On Sep 29, 2013, at 2:51 PM, Eric E Dolecki edole...@gmail.com wrote: Must be a PNG no? On Sep 29, 2013, at 5:16 PM, Alex Zavatone z...@mac.com wrote: There are many kinds of image files. Which kind is it? On Sep 29, 2013, at 4:15 PM, Paul Scott wrote: I have an image file—created in Photoshop, anti-aliasd against a transparent background—that I would like colorized using the same tint color used in the navigation bar. Is there a way to colorize this pre-drawn image programmatically? -- Paul Scott psc...@skycoast.us ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Transparent Image with Tint Color
Now, I'm wondering if there's a way to get UIWebView to apply tint color to an image URL, via some extension? I would like my UIWebView-based app help — which references the app's images — to dynamically adopt the same tint color as the rest of the app, without resorting to saving the template-rendered image to disk. Paul On Sep 29, 2013, at 1:38 PM, Paul Scott psc...@skycoast.us wrote: Thanks, guys! That did the trick; exactly what I needed for iOS 7 app update, and so simple! I will watch session 214 to garner what other gems might have been presented. I *did* read the iOS 7 UI Transition Guide—which I just now verified discusses UIImageRenderingModeAlwaysTemplate—but somehow I missed that; probably because I glossed over it at the time not realizing I'd need it. Paul On Sep 29, 2013, at 1:24 PM, Hunter Hillegas li...@lastonepicked.com wrote: On iOS? If I’m understanding correctly, you want [UIImage imageWithRenderingMode:] and picking UIImageRenderingModeAlwaysTemplate. On Sep 29, 2013, at 1:27 PM, Cai Durbin cai.dur...@gmail.com wrote: If you're targeting iOS 7, then you should take a look at WWDC session 214 (Customizing Your App’s Appearance for iOS 7). It talks about using the method on UIImage called imageWithRenderingMode:, which lets you use the tintColor property to tint your generic images in code. If you're targeting iOS 6 and below, then check out the tutorial by thoughtbot that uses blending modes to colour an image. http://robots.thoughtbot.com/post/46668544473/designing-for-ios-blending-modes Hope that helps, ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Transparent Image with Tint Color
I suppose I could try using stringByEvaluatingJavaScriptFromString: to insert the raw template-rendered image data into the web page with the Data URI scheme. The images are fairly small, so that seems doable, but if there's an easier way, I'd choose that path. Paul On Sep 29, 2013, at 2:55 PM, Paul Scott psc...@skycoast.us wrote: Now, I'm wondering if there's a way to get UIWebView to apply tint color to an image URL, via some extension? I would like my UIWebView-based app help — which references the app's images — to dynamically adopt the same tint color as the rest of the app, without resorting to saving the template-rendered image to disk. ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Transparent Image with Tint Color
So, I successfully update the image src attribute within the UIWebView page using imageWithRederingMode:UIImageRederingModeAlwaysTemplate. However, the image appears unrendered with the tint color. Why? How do I get an image rendered in the tint color? UIImage *image = [controller.infoIcon.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; NSString *data = [UIImagePNGRepresentation(image) base64EncodedStringWithOptions:nil]; [webView stringByEvaluatingJavaScriptFromString: [NSString stringWithFormat:@%@%@%@, @( function() { @var x = document.getElementById('infoIcon'); @if ( !! x ) { @x.src = 'data:image/png;base64,, data, @'; @} @})(); ] ]; Paul On Sep 29, 2013, at 3:10 PM, Paul Scott psc...@skycoast.us wrote: I suppose I could try using stringByEvaluatingJavaScriptFromString: to insert the raw template-rendered image data into the web page with the Data URI scheme. The images are fairly small, so that seems doable, but if there's an easier way, I'd choose that path. Paul On Sep 29, 2013, at 2:55 PM, Paul Scott psc...@skycoast.us wrote: Now, I'm wondering if there's a way to get UIWebView to apply tint color to an image URL, via some extension? I would like my UIWebView-based app help — which references the app's images — to dynamically adopt the same tint color as the rest of the app, without resorting to saving the template-rendered image to disk. ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Transparent Image with Tint Color
On Sep 29, 2013, at 5:01 PM, Paul Scott psc...@skycoast.us wrote: So, I successfully update the image src attribute within the UIWebView page using imageWithRederingMode:UIImageRederingModeAlwaysTemplate. However, the image appears unrendered with the tint color. Why? Because you misunderstand how template images work. -imageWithRenderingMode just returns a shallow copy of your UIImage that returns the passed value when asked for its renderingMode. It does not create an image that draws itself in the tint color. How could it? The image has no idea what view's tint color to adopt at initialization or at drawing time. How do I get an image rendered in the tint color? Start a bitmap context, set your template image as the image mask, set the full color to the appropriate tintColor, and fill the bounds of the context. Construct a data URI out of the image you get by closing the bitmap context. --Kyle Sluder ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Transparent Image with Tint Color
On Sep 29, 2013, at 6:54 PM, Kyle Sluder k...@ksluder.com wrote: How do I get an image rendered in the tint color? Start a bitmap context, set your template image as the image mask, set the full color to the appropriate tintColor, and fill the bounds of the context. Construct a data URI out of the image you get by closing the bitmap context. That works. Thanks. I was already heading down that path, since it seemed kind of obvious after thinking about it. Nevertheless, there are some strange and non-obvious dependencies that exist with various Cocoa and CG objects that aren't particularly well documented, such as [colorObject setFill]; I mean, what kind of magic happens there? Normally, I'd expect an instance method to operate on the receiver; but by this incantation the graphics context is involved. Yes, I've got some learning ahead of me. In any case, for anyone who cares, this code (in the webViewDidFinishLoad: method) worked: UIImage *image = [controller.infoIcon.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; UIGraphicsBeginImageContext(image.size); CGContextRef context = UIGraphicsGetCurrentContext(); CGRect rect = CGRectMake(0, 0, image.size.width, image.size.height); CGContextSetBlendMode(context, kCGBlendModeNormal); CGContextDrawImage(context, rect, image.CGImage); CGContextSetBlendMode(context, kCGBlendModeColor); [[webView tintColor] setFill]; CGContextFillRect(context, rect); CGContextSetBlendMode(context, kCGBlendModeDestinationIn); CGContextDrawImage(context, rect, image.CGImage); image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); NSString *data = [UIImagePNGRepresentation(image) base64EncodedStringWithOptions:nil]; [webView stringByEvaluatingJavaScriptFromString: [NSString stringWithFormat:@%@%@%@, @( function() { @var x = document.getElementById('infoIcon'); @if ( !! x ) { @x.src = 'data:image/png;base64,, data, @'; @} @})(); ] ]; Paul ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Transparent Image with Tint Color
On Sep 29, 2013, at 7:37 PM, Paul Scott psc...@skycoast.us wrote: On Sep 29, 2013, at 6:54 PM, Kyle Sluder k...@ksluder.com wrote: How do I get an image rendered in the tint color? Start a bitmap context, set your template image as the image mask, set the full color to the appropriate tintColor, and fill the bounds of the context. Construct a data URI out of the image you get by closing the bitmap context. That works. Thanks. I was already heading down that path, since it seemed kind of obvious after thinking about it. Nevertheless, there are some strange and non-obvious dependencies that exist with various Cocoa and CG objects that aren't particularly well documented, such as [colorObject setFill]; I mean, what kind of magic happens there? No magic. You could implement it yourself: @implementation UIColor - (void)setFill { CGContextSetFillColorWithColor(UIGraphicsGetCurrentContext(), self.CGColor); } @end Normally, I'd expect an instance method to operate on the receiver; but by this incantation the graphics context is involved. It mimics the NSColor API, which is in turn reflective of the stack-based nature of the Postscript programming language which used to underlie the graphics system of the NeXT. In traditional PostScript, you push a color, then push the operator to select that color as the fill color. There's only one graphics context in traditional Postscript; when Display Postscript was conceived, the concept of multiple graphics contexts was introduced by maintaining a stack of graphics contexts. This minimizes conflict with traditional PostScript because all operators affect the current context at the top of the stack. Core Graphics doesn't need to maintain that compatibility; the API requires the programmer to specify the graphics context for every operation. CG _does_ maintain the idea of a stack of graphics states _within_ a context. AppKit and UIKit independently build the idea of a stack of _contexts_ atop Core Graphics. On the Mac, the interface is +[NSGraphicsContext currentContext]; on iOS, it's UIGraphicsGetCurrentContext(). UIImage *image = [controller.infoIcon.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate]; You don't need this anymore; the image data is not going to change. I doubt it will hurt all that much. If you want to build a reusable ImageByTintingTemplateImage() function out of your code, perhaps instead of creating a template version of the image, you could assert that the image is already a template; that puts the onus on the caller to verify (or at least emptily promise) that they're handing you the correct asset to be tinted. NSString *data = [UIImagePNGRepresentation(image) base64EncodedStringWithOptions:nil]; [webView stringByEvaluatingJavaScriptFromString: [NSString stringWithFormat:@%@%@%@, @( function() { @var x = document.getElementById('infoIcon'); @if ( !! x ) { @x.src = 'data:image/png;base64,, data, @'; @} @})(); ] ]; Rather than building up and executing a _very_ long JavaScript, would you be better off accessing the DOM directly? --Kyle Sluder ___ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Transparent Image
On 12 Feb 2009, at 04:37:35, Michael Ash wrote: On Wed, Feb 11, 2009 at 3:41 PM, Christian Graus christian.gr...@gmail.com wrote: Please file a bug and request this functionality. OK - that would not have occurred to me at all. That works in the Mac world ? Awesome !! I've found plenty of Microsoft bugs, and I was even an MVP at the time, they always ignored me, or told me they were features ( and I found some MAJOR bugs in WPF ). I assume if I go to the Apple Dev Connection and log in, I'll be able to find a place to log bugs ? Hah, Apple do something about filed bugs, right. Looking at the list of bugs I've filed, the most common state is Open. The next most common state is Duplicate. And don't think that Duplicate means your bug gets merged into the original and now you get told about what's happening with the original bug. No, Duplicate is a black hole of information. Once your bug is marked Duplicate, you lose, game over, no more information will be arriving, ever. Filing bugs can be worthwhile. Perhaps 5% of the time it actually gets results. But be prepared for very little reward. Mike Apple have asked for more information on about half of my bugs, but most of them do remain unfixed. ___ 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
Re: Transparent Image
On Feb 11, 2009, at 8:37 PM, Michael Ash wrote: On Wed, Feb 11, 2009 at 3:41 PM, Christian Graus christian.gr...@gmail.com wrote: Please file a bug and request this functionality. OK - that would not have occurred to me at all. That works in the Mac world ? Awesome !! I've found plenty of Microsoft bugs, and I was even an MVP at the time, they always ignored me, or told me they were features ( and I found some MAJOR bugs in WPF ). I assume if I go to the Apple Dev Connection and log in, I'll be able to find a place to log bugs ? http://bugreporter.apple.com Hah, Apple do something about filed bugs, right. Looking at the list of bugs I've filed, the most common state is Open. The next most common state is Duplicate. And don't think that Duplicate means your bug gets merged into the original and now you get told about what's happening with the original bug. No, Duplicate is a black hole of information. Once your bug is marked Duplicate, you lose, game over, no more information will be arriving, ever. Filing bugs can be worthwhile. Perhaps 5% of the time it actually gets results. But be prepared for very little reward. For what it's worth, filing bugs is *very* worthwhile. It lets Apple know what issues are important to developers and what problems they are encountering. Logging duplicates is also fine, as it gives us an idea of what problems are constantly being reported. The 'original' bug has references to the other bugs, and we use that when diagnosing the problem; it helps us *greatly* to have that information. Please do not disregard it as a fruitless effort. If you encounter a problem that you think is a bug, please go ahead and log a bug, and include the radar number when you post to this list. People who have radar access may want to take a look at the issue you are talking about in your post. thanks, corbin ___ 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
Re: Transparent Image
On Thu, Feb 12, 2009 at 5:48 PM, Corbin Dunn corb...@apple.com wrote: For what it's worth, filing bugs is *very* worthwhile. It lets Apple know what issues are important to developers and what problems they are encountering. Logging duplicates is also fine, as it gives us an idea of what problems are constantly being reported. The 'original' bug has references to the other bugs, and we use that when diagnosing the problem; it helps us *greatly* to have that information. Please do not disregard it as a fruitless effort. Right, it's useful (or so we are told by people who would know, like yourself), it just doesn't generate directly visible results in the bug reporter most of the time. So the instant gratification aspect of the whole endeavor is unfortunately missing, but it's still a worthwhile activity. Mike ___ 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
Re: Transparent image
On 11/02/2009, at 5:11 AM, Christian Graus wrote: Thanks - that's pretty much what I am going to do. I will move the objects that need transparency to NSImageView today, and then once we get this version out for demo purposes, I will start rewriting the tools I needed from IKImageView. Shame, really, I've wasted days on IKImageView. The docs don't really tell you that they don't support transparency, that I can see. I also can't see why it can draw a grid behind the image, but won't let me specify the bitmap to draw behind it, surely that would be trivial for the authors of the class to do. Please file a bug and request this functionality. -- Rob Keniger ___ 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
Re: Transparent Image
Please file a bug and request this functionality. OK - that would not have occurred to me at all. That works in the Mac world ? Awesome !! I've found plenty of Microsoft bugs, and I was even an MVP at the time, they always ignored me, or told me they were features ( and I found some MAJOR bugs in WPF ). I assume if I go to the Apple Dev Connection and log in, I'll be able to find a place to log bugs ? Christian ___ 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
Re: Transparent Image
Don't get your hopes up too much, plenty of issues remain unsolved for looong periods of time. You want http://bugreport.apple.com On 11 Feb 2009, at 20:41, Christian Graus wrote: Please file a bug and request this functionality. OK - that would not have occurred to me at all. That works in the Mac world ? Awesome !! I've found plenty of Microsoft bugs, and I was even an MVP at the time, they always ignored me, or told me they were features ( and I found some MAJOR bugs in WPF ). I assume if I go to the Apple Dev Connection and log in, I'll be able to find a place to log bugs ? Christian ___ 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/cocoadev%40mikeabdullah.net This email sent to cocoa...@mikeabdullah.net ___ 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
Re: Transparent Image
Thank you. The number is *6578276.*https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/85/wo/n3gbesxSHOpLghGqW9p2I0/8.34 On Thu, Feb 12, 2009 at 9:57 AM, Kyle Sluder kyle.slu...@gmail.com wrote: http://bugreport.apple.com Then make sure to post the bug number here. --Kyle Sluder -- --Kyle Sluder ___ 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
Re: Transparent Image
Yeah, I'm sure this is not going to come in time to solve the issue for my project, but still, it's nice to think that it may get addressed at some point. On Thu, Feb 12, 2009 at 10:17 AM, Mike Abdullah cocoa...@mikeabdullah.netwrote: Don't get your hopes up too much, plenty of issues remain unsolved for looong periods of time. You want http://bugreport.apple.com On 11 Feb 2009, at 20:41, Christian Graus wrote: Please file a bug and request this functionality. OK - that would not have occurred to me at all. That works in the Mac world ? Awesome !! I've found plenty of Microsoft bugs, and I was even an MVP at the time, they always ignored me, or told me they were features ( and I found some MAJOR bugs in WPF ). I assume if I go to the Apple Dev Connection and log in, I'll be able to find a place to log bugs ? Christian ___ 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/cocoadev%40mikeabdullah.net This email sent to cocoa...@mikeabdullah.net ___ 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
Re: Transparent Image
On Wed, Feb 11, 2009 at 3:41 PM, Christian Graus christian.gr...@gmail.com wrote: Please file a bug and request this functionality. OK - that would not have occurred to me at all. That works in the Mac world ? Awesome !! I've found plenty of Microsoft bugs, and I was even an MVP at the time, they always ignored me, or told me they were features ( and I found some MAJOR bugs in WPF ). I assume if I go to the Apple Dev Connection and log in, I'll be able to find a place to log bugs ? Hah, Apple do something about filed bugs, right. Looking at the list of bugs I've filed, the most common state is Open. The next most common state is Duplicate. And don't think that Duplicate means your bug gets merged into the original and now you get told about what's happening with the original bug. No, Duplicate is a black hole of information. Once your bug is marked Duplicate, you lose, game over, no more information will be arriving, ever. Filing bugs can be worthwhile. Perhaps 5% of the time it actually gets results. But be prepared for very little reward. Mike ___ 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
Re: Transparent image
OK - I've overridden isOpaque and I am returning NO. This method is being called, so I am sure I've done that bit right. In the same code, I added code to set the background color to clearColor ( net result is that the background is black ) or used the code you gave me earlier ( net result is, the background is white ). It seems there is no way to get the control to draw itself transparently, even though it plainly knows how to draw with respect to the alpha in the png, turning on the grid option makes that clear. Is there a method I can override, and then take a screen shot of my background, and make that the image behind the image drawn on the control ? I am adding an IKImageView derived class onto my main window in the XIB ( I've actually tried just adding it in code, too ) and I need this class for the paint tools it gives me access to. So, if the control does not support being transparent, I need to find a way to fake it. Thanks Christian On Tue, Feb 10, 2009 at 11:25 AM, Steve Christensen puns...@mac.com wrote: Sorry, I misread your original posting. You're trying to make the view transparent, not the window. Based on what you're seeing when you set the view's backgroundColor, it looks like the alpha component is being ignored. I would guess that either the IKImageView only supports an opaque background or you need to play with it some more to get transparency to work. One way to find out would be to subclass IKImageView and override NSView's isOpaque method, returning NO. Also, depending on what you're trying to do, you could always use NSImageView since that does respect transparency, at least when I've tried it with the non-bordered version. On Feb 9, 2009, at 3:10 PM, Christian Graus wrote: I'm sorry, I'm not sure that I'm following this. Looking at it more closely, on the side I want this behaviour, it's just an IKImageView derived class on top of a window. So, I just need to make the IKImageView show the image, transparently. I've tried setting the Opaque setting, but it doesn't appear to have one. I've also tried setting the background color to what you've shown here ( it gives me a white background ) or clearColor ( which gives me a black background ). Is there something I am missing ? Thanks for your help Christian On Tue, Feb 10, 2009 at 9:18 AM, Steve Christensen puns...@mac.comwrote: Something similar to what you're asking was discussed on this list last week. To get you started: [window setOpaque:NO]; [window setBackgroundColor:[NSColor colorWithCalibratedWhite:1.0 alpha:0.5]]; On Feb 9, 2009, at 1:55 PM, Christian Graus wrote: I have a window with an image showing on it. Above this I have a window, which contains an IKImageView derived class. The IKImageView has a PNG in it, which has a transparency layer. What I need to do, is to make that image appear above the image I have in my main window, that is, the control needs to be transparent, so that one picture appears above another. I've found a sample that sets the window alpha, but that fades the whole window, I just want to make the background transparent. I'd appreciate any suggestions. ___ 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
Re: Transparent Image
The IKImageView and IKImageBrowserView do some pretty funky stuff under the hood and don't support background or image transparency as far as I am tell. Subclassing them and overriding the drawing methods causes nothing but pain, believe me. OK - so you're saying that the IKImageView is useless to me b/c I want to draw an image with transparency - I have no choice but to start again and write all the stuff I get from IKImageView myself, probably in an NSImageView derived class ? Are there any other alternatives ? Do commercial controls exist in the Mac world ? If I could pay for a control that does what IKImageView does, but supported transparency, I would. Right now, we are very behind on schedule and very short on time. Christian ___ 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
Re: Transparent image
Thanks - that's pretty much what I am going to do. I will move the objects that need transparency to NSImageView today, and then once we get this version out for demo purposes, I will start rewriting the tools I needed from IKImageView. Shame, really, I've wasted days on IKImageView. The docs don't really tell you that they don't support transparency, that I can see. I also can't see why it can draw a grid behind the image, but won't let me specify the bitmap to draw behind it, surely that would be trivial for the authors of the class to do. Christian On Wed, Feb 11, 2009 at 2:19 AM, Steve Christensen puns...@mac.com wrote: I understand that IKImageView respects the alpha channel of the image. My suggestions were directed at seeing if it was possible to make the view's background transparent. From some of the other replies it sounds like that's not possible, or at least, not very easy to do. Depending on what you're trying to do overall, you could also create your own custom view that has a transparent background and apply a NSAffineTransform before drawing the image to cause it to rotate, scale, flip, whatever... On Feb 10, 2009, at 12:44 AM, Christian Graus wrote: OK - I've overridden isOpaque and I am returning NO. This method is being called, so I am sure I've done that bit right. In the same code, I added code to set the background color to clearColor ( net result is that the background is black ) or used the code you gave me earlier ( net result is, the background is white ). It seems there is no way to get the control to draw itself transparently, even though it plainly knows how to draw with respect to the alpha in the png, turning on the grid option makes that clear. Is there a method I can override, and then take a screen shot of my background, and make that the image behind the image drawn on the control ? I am adding an IKImageView derived class onto my main window in the XIB ( I've actually tried just adding it in code, too ) and I need this class for the paint tools it gives me access to. So, if the control does not support being transparent, I need to find a way to fake it. Thanks Christian On Tue, Feb 10, 2009 at 11:25 AM, Steve Christensen puns...@mac.comwrote: Sorry, I misread your original posting. You're trying to make the view transparent, not the window. Based on what you're seeing when you set the view's backgroundColor, it looks like the alpha component is being ignored. I would guess that either the IKImageView only supports an opaque background or you need to play with it some more to get transparency to work. One way to find out would be to subclass IKImageView and override NSView's isOpaque method, returning NO. Also, depending on what you're trying to do, you could always use NSImageView since that does respect transparency, at least when I've tried it with the non-bordered version. On Feb 9, 2009, at 3:10 PM, Christian Graus wrote: I'm sorry, I'm not sure that I'm following this. Looking at it more closely, on the side I want this behaviour, it's just an IKImageView derived class on top of a window. So, I just need to make the IKImageView show the image, transparently. I've tried setting the Opaque setting, but it doesn't appear to have one. I've also tried setting the background color to what you've shown here ( it gives me a white background ) or clearColor ( which gives me a black background ). Is there something I am missing ? Thanks for your help Christian On Tue, Feb 10, 2009 at 9:18 AM, Steve Christensen puns...@mac.comwrote: Something similar to what you're asking was discussed on this list last week. To get you started: [window setOpaque:NO]; [window setBackgroundColor:[NSColor colorWithCalibratedWhite:1.0 alpha:0.5]]; On Feb 9, 2009, at 1:55 PM, Christian Graus wrote: I have a window with an image showing on it. Above this I have a window, which contains an IKImageView derived class. The IKImageView has a PNG in it, which has a transparency layer. What I need to do, is to make that image appear above the image I have in my main window, that is, the control needs to be transparent, so that one picture appears above another. I've found a sample that sets the window alpha, but that fades the whole window, I just want to make the background transparent. I'd appreciate any suggestions. ___ 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
Transparent image
Hi guys I have a window with an image showing on it. Above this I have a window, which contains an IKImageView derived class. The IKImageView has a PNG in it, which has a transparency layer. What I need to do, is to make that image appear above the image I have in my main window, that is, the control needs to be transparent, so that one picture appears above another. I've found a sample that sets the window alpha, but that fades the whole window, I just want to make the background transparent. I'd appreciate any suggestions. Christian ___ 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
Re: Transparent image
Something similar to what you're asking was discussed on this list last week. To get you started: [window setOpaque:NO]; [window setBackgroundColor:[NSColor colorWithCalibratedWhite:1.0 alpha:0.5]]; On Feb 9, 2009, at 1:55 PM, Christian Graus wrote: I have a window with an image showing on it. Above this I have a window, which contains an IKImageView derived class. The IKImageView has a PNG in it, which has a transparency layer. What I need to do, is to make that image appear above the image I have in my main window, that is, the control needs to be transparent, so that one picture appears above another. I've found a sample that sets the window alpha, but that fades the whole window, I just want to make the background transparent. I'd appreciate any suggestions. ___ 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
Re: Transparent image
Thanks - I've been trying to use NSColor clearColor, and that's not worked at all, I'll give this a go. On Tue, Feb 10, 2009 at 9:18 AM, Steve Christensen puns...@mac.com wrote: Something similar to what you're asking was discussed on this list last week. To get you started: [window setOpaque:NO]; [window setBackgroundColor:[NSColor colorWithCalibratedWhite:1.0 alpha:0.5]]; On Feb 9, 2009, at 1:55 PM, Christian Graus wrote: I have a window with an image showing on it. Above this I have a window, which contains an IKImageView derived class. The IKImageView has a PNG in it, which has a transparency layer. What I need to do, is to make that image appear above the image I have in my main window, that is, the control needs to be transparent, so that one picture appears above another. I've found a sample that sets the window alpha, but that fades the whole window, I just want to make the background transparent. I'd appreciate any suggestions. ___ 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
Re: Transparent image
I'm sorry, I'm not sure that I'm following this. Looking at it more closely, on the side I want this behaviour, it's just an IKImageView derived class on top of a window. So, I just need to make the IKImageView show the image, transparently. I've tried setting the Opaque setting, but it doesn't appear to have one. I've also tried setting the background color to what you've shown here ( it gives me a white background ) or clearColor ( which gives me a black background ). Is there something I am missing ? Thanks for your help Christian On Tue, Feb 10, 2009 at 9:18 AM, Steve Christensen puns...@mac.com wrote: Something similar to what you're asking was discussed on this list last week. To get you started: [window setOpaque:NO]; [window setBackgroundColor:[NSColor colorWithCalibratedWhite:1.0 alpha:0.5]]; On Feb 9, 2009, at 1:55 PM, Christian Graus wrote: I have a window with an image showing on it. Above this I have a window, which contains an IKImageView derived class. The IKImageView has a PNG in it, which has a transparency layer. What I need to do, is to make that image appear above the image I have in my main window, that is, the control needs to be transparent, so that one picture appears above another. I've found a sample that sets the window alpha, but that fades the whole window, I just want to make the background transparent. I'd appreciate any suggestions. ___ 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
Re: Transparent image
Sorry, I misread your original posting. You're trying to make the view transparent, not the window. Based on what you're seeing when you set the view's backgroundColor, it looks like the alpha component is being ignored. I would guess that either the IKImageView only supports an opaque background or you need to play with it some more to get transparency to work. One way to find out would be to subclass IKImageView and override NSView's isOpaque method, returning NO. Also, depending on what you're trying to do, you could always use NSImageView since that does respect transparency, at least when I've tried it with the non-bordered version. On Feb 9, 2009, at 3:10 PM, Christian Graus wrote: I'm sorry, I'm not sure that I'm following this. Looking at it more closely, on the side I want this behaviour, it's just an IKImageView derived class on top of a window. So, I just need to make the IKImageView show the image, transparently. I've tried setting the Opaque setting, but it doesn't appear to have one. I've also tried setting the background color to what you've shown here ( it gives me a white background ) or clearColor ( which gives me a black background ). Is there something I am missing ? Thanks for your help Christian On Tue, Feb 10, 2009 at 9:18 AM, Steve Christensen puns...@mac.com wrote: Something similar to what you're asking was discussed on this list last week. To get you started: [window setOpaque:NO]; [window setBackgroundColor:[NSColor colorWithCalibratedWhite:1.0 alpha:0.5]]; On Feb 9, 2009, at 1:55 PM, Christian Graus wrote: I have a window with an image showing on it. Above this I have a window, which contains an IKImageView derived class. The IKImageView has a PNG in it, which has a transparency layer. What I need to do, is to make that image appear above the image I have in my main window, that is, the control needs to be transparent, so that one picture appears above another. I've found a sample that sets the window alpha, but that fades the whole window, I just want to make the background transparent. I'd appreciate any suggestions. ___ 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
Re: Transparent image
Yes - the interesting thing is, if I turn the grid on for the IKImageView, it is plainly well able to recognise the transparency layer in my PNG and render accordingly. We are overriding IKImageView already, although we're not yet doing anything funky at all, just adding helper methods and handling keypresses. I will try what you've suggested. My other idea is, if the control can display itself transparently on top of a window, I may try taking a screenshot of the area underneath and then house my IKImageView in another control, and in that control, set the background image to fake transparency. We need IKImageView to give us flip, rotate, zoom and pan. We may well have to write our own, but right now, that will take longer than I have to get ready for a demo, so I'm going to persist with trying to get this to work Thanks for the help Christian On Tue, Feb 10, 2009 at 11:25 AM, Steve Christensen puns...@mac.com wrote: Sorry, I misread your original posting. You're trying to make the view transparent, not the window. Based on what you're seeing when you set the view's backgroundColor, it looks like the alpha component is being ignored. I would guess that either the IKImageView only supports an opaque background or you need to play with it some more to get transparency to work. One way to find out would be to subclass IKImageView and override NSView's isOpaque method, returning NO. Also, depending on what you're trying to do, you could always use NSImageView since that does respect transparency, at least when I've tried it with the non-bordered version. On Feb 9, 2009, at 3:10 PM, Christian Graus wrote: I'm sorry, I'm not sure that I'm following this. Looking at it more closely, on the side I want this behaviour, it's just an IKImageView derived class on top of a window. So, I just need to make the IKImageView show the image, transparently. I've tried setting the Opaque setting, but it doesn't appear to have one. I've also tried setting the background color to what you've shown here ( it gives me a white background ) or clearColor ( which gives me a black background ). Is there something I am missing ? Thanks for your help Christian On Tue, Feb 10, 2009 at 9:18 AM, Steve Christensen puns...@mac.comwrote: Something similar to what you're asking was discussed on this list last week. To get you started: [window setOpaque:NO]; [window setBackgroundColor:[NSColor colorWithCalibratedWhite:1.0 alpha:0.5]]; On Feb 9, 2009, at 1:55 PM, Christian Graus wrote: I have a window with an image showing on it. Above this I have a window, which contains an IKImageView derived class. The IKImageView has a PNG in it, which has a transparency layer. What I need to do, is to make that image appear above the image I have in my main window, that is, the control needs to be transparent, so that one picture appears above another. I've found a sample that sets the window alpha, but that fades the whole window, I just want to make the background transparent. I'd appreciate any suggestions. ___ 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
Re: Transparent image
On 10/02/2009, at 10:30 AM, Christian Graus wrote: Yes - the interesting thing is, if I turn the grid on for the IKImageView, it is plainly well able to recognise the transparency layer in my PNG and render accordingly. We are overriding IKImageView already, although we're not yet doing anything funky at all, just adding helper methods and handling keypresses. I will try what you've suggested. My other idea is, if the control can display itself transparently on top of a window, I may try taking a screenshot of the area underneath and then house my IKImageView in another control, and in that control, set the background image to fake transparency. The IKImageView and IKImageBrowserView do some pretty funky stuff under the hood and don't support background or image transparency as far as I am tell. Subclassing them and overriding the drawing methods causes nothing but pain, believe me. -- Rob Keniger ___ 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