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.
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.