Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Marimuthu

macrumors member
Original poster
Oct 18, 2010
43
0
Dear All,

I am developing an drawer like application using xcode on 10.6.

I have an child window adjacent to the main window which slides in/out like a NSDrawer window. ( I did not use a NSDrawer to do away with the looks and border). In IB, the child window is selected as shadowless window.

I draw a transparent child window (adjacent to main window), and resize the content view of the child window using NSViewAnimation to get the required animation (of sliding in and sliding out).

I am not able to draw a drop shadow for the child view outside of the boundary of the view. It seems that the drop shadow is drawn within the view inclosing the child window. I have the code to draw shadow in the drawRect method of the child view class. Unable to figure out as to what am I doing wrong?

Any help/guidance to draw the drop shadow outside of the view/window will be greatly appreciated.

I have attached the project for your kind reference.
 

Attachments

  • ToDrawDropShadow.zip
    46.9 KB · Views: 43
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.