Customize NSDrawer view.

Discussion in 'Mac Programming' started by Marimuthu, Nov 17, 2011.

  1. Marimuthu macrumors member

    Oct 18, 2010

    Is it possible to customize the drawer view of the NSDrawer control available in Cocoa?.
    My requirement is an drawer without the border along the 3 sides of the window.

    Could somebody please help me by guiding me as to how I should approach this problem.

    Thanks & Regards.
  2. Blakeasd macrumors 6502a

    Dec 29, 2009
  3. Marimuthu thread starter macrumors member

    Oct 18, 2010

    I did refer to this document about NSDrawer. Found that info related to the "Default" drawer operation are specified (like size of drawer window, the edge in which the drawer should open/close etc).

    I could not find any info on over-riding the default look and feel of the drawer control.
  4. Sydde macrumors 68020


    Aug 17, 2009
    I would consider setting a breakpoint somewhere so you can examine the structure of the drawer's content view. You might find some of the appearance elements (the 3d edge, for instance) are specific NSView objects. You might be able to tear out the part you do not want and replace it with a superview that pleases you.

Share This Page