Re: NSImage glowing

2014-11-11 Thread Allan Odgaard
On 11 Nov 2014, at 12:18, Uli Kusterer wrote: Now of course I can just create a hand-drawn selected version, but I like doing things like that in code. So I’d like to have code that takes the NSImage and makes it glow like Xcode here: https://www.dropbox.com/s/by642iw7xosnki7/Screenshot%202014

Re: NSImage glowing

2014-11-11 Thread Uli Kusterer
On 04 Nov 2014, at 19:41, Alex Kac wrote: > I have an NSImage that looks like in a mini-toolbar - kind of like Xcode. > > Now of course I can just create a hand-drawn selected version, but I like > doing things like that in code. So I’d like to have code that takes the > NSImage and makes it

Re: NSImage glowing

2014-11-06 Thread Alex Kac
Thank you guys. This has helped a lot. I have a much better understanding of this now. > On Nov 5, 2014, at 7:40 PM, Lee Ann Rucker wrote: > > > On Nov 5, 2014, at 5:53 PM, Wim Lewis wrote: > >> >> On Nov 5, 2014, at 3:43 PM, Alex Kac wrote: >>> BUT, in this case I’m just trying to get the

Re: NSImage glowing

2014-11-05 Thread Lee Ann Rucker
On Nov 5, 2014, at 5:53 PM, Wim Lewis wrote: > > On Nov 5, 2014, at 3:43 PM, Alex Kac wrote: >> BUT, in this case I’m just trying to get the glow on selected images, so >> when I look at the code below all I see is that we’re getting the bitmap and >> drawing it. I’m not understanding how th

Re: NSImage glowing

2014-11-05 Thread Wim Lewis
On Nov 5, 2014, at 3:43 PM, Alex Kac wrote: > BUT, in this case I’m just trying to get the glow on selected images, so when > I look at the code below all I see is that we’re getting the bitmap and > drawing it. I’m not understanding how that gets a glow. It’s applied by NSButtonCell, which k

Re: NSImage glowing

2014-11-05 Thread Alex Kac
Yeah, I need to look at that original message. I’ve been doing iOS stuff for years and so OS X stuff is a bit foreign to me. I only hit the OS X stuff intermittently - i.e. when my team needs some specific UI stuff which is ironic in a way. We’re all iOS developers learning OS X. So, can you he

Re: NSImage glowing

2014-11-04 Thread Lee Ann Rucker
If you want the same blue highlight that NSButton applies to template images, you can get the NSButtonCell to draw it into a graphics context and get an image that way - I answered this when you asked about buttons specifically back in June. (My bug requesting an NSImage method to do that is sti

Re: NSImage glowing

2014-11-04 Thread Alex Zavatone
I can't see the image, but what about a gaussian blur on a white outline of the icon with a 20% white UIColor on the background with a 5 pixel blur radius? Dropbox is blocked from my current location Sent from my iPad. Please pardon typos. On Nov 4, 2014, at 1:41 PM, Alex Kac wrote: > I have