I have a view embedded in a NSScrollView. When the view is small
there's a large expanse of grey visible. I'd like to draw a drop-
shadow around the view in this situation to help it stand out slightly
from the background. What's a good approach to do this?
tia,
cheers, Graham
Hi Graham,
if I understand your question, then I wanted to do something like this
a while back. I got something off the internet, though I can't
remember where. Here's the source that I incorporated into my code.
It's been ages since I added it in, so I can't remember whether this
takes
How odd I came across this yesterday on my travels! The site for this
source is
http://www.bergdesign.com/missing_cocoa_docs/nsclipview.html
Jonathan
www.espresso-served-here.com
On 25 Jul 2008, at 11:13, Ian Jackson wrote:
Hi Graham,
if I understand your question, then I wanted to do som
Ah yes,
Perhaps I should add that address in the comments at the top of the
class for future reference. I see that the shadow stuff isn't in that
original code, but it all seems to go hand in hand. The complete lack
of commenting in the drawRect method strongly implies that I am
responsib
Thanks Ian, just what I was looking for.
Graham
On 26 Jul 2008, at 8:18 am, Ian Jackson wrote:
Anyway, hopefully with that link, along with the extra bit at the
bottom about how to incorporate the code, this should all help draw
shadows.
___