+ if ( style & wxBORDER_NONE )
+ {
+ [v setBezelStyle:NSShadowlessSquareBezelStyle];
+ [v setBordered:NO];
+ }
+ else
+ {
+ // the following styles only exist for certain sizes, so avoid them for
+ // multi-line
+ if ( label.Find('\n' ) == wxNOT_FOUND && label.Find('\r' ) == wxNOT_FOUND)
+ {
+ if ( (style & wxBORDER_MASK) == wxBORDER_RAISED )
+ [v setBezelStyle:NSRoundedBezelStyle];
+ else if ( (style & wxBORDER_MASK) == wxBORDER_SUNKEN )
+ [v setBezelStyle:NSTexturedRoundedBezelStyle];
+ else if ( (style & wxBORDER_MASK) == wxBORDER_SIMPLE )
+ [v setBezelStyle:NSShadowlessSquareBezelStyle];
+ else
+ [v setBezelStyle:NSRoundedBezelStyle];
+ }
+ else
+ {
+ if ( (style & wxBORDER_MASK) == wxBORDER_RAISED )
+ [v setBezelStyle:NSRegularSquareBezelStyle];
+ else if ( (style & wxBORDER_MASK) == wxBORDER_SUNKEN )
+ [v setBezelStyle:NSSmallSquareBezelStyle];
+ else if ( (style & wxBORDER_MASK) == wxBORDER_SIMPLE )
+ [v setBezelStyle:NSShadowlessSquareBezelStyle];
+ else
+ [v setBezelStyle:NSRegularSquareBezelStyle];
+ }