NSView's shadow


#1

Hello Everybody,

How to draw shadow outside of documnetView in NSScrollView?
the effect look likes following:
https://picasaweb.google.com/114755931805273493604/201233?authkey=Gv1sRgCOqQzbPQoqzuKg#5717479819434480178

Subclass contentView or documentView in NSScrollView?
or
Subclass a NSView and then enable Layer?

Thanks for help.


#2

You want to have a look at NSShadow (yes, yes, there is a such a class).

For a more detailed post on the subject: kickingbear.com/blog/archives/248