diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport
index 5848ad85f0..5cccce85f4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport
@@ -1309,6 +1309,10 @@
+
+
+
+
@@ -1325,6 +1329,10 @@
+
+
+
+
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras
index f609d030e1..41ee2f9d8f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras
@@ -4372,12 +4372,20 @@
+
+
+
+
+
+
+
+
@@ -4454,7 +4462,6 @@
-
@@ -4486,19 +4493,14 @@
-
-
-
-
-
@@ -4510,14 +4512,12 @@
-
-
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
index fffa4837ed..5c7f1e6576 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
@@ -2179,12 +2179,20 @@ public static Selector getSelector (long value) {
public static final int NSBackspaceCharacter = 8;
public static final int NSBevelLineJoinStyle = 2;
public static final int NSBezelBorder = 2;
+public static final int NSBezelStyleFlexiblePush = 2;
+public static final int NSBezelStylePush = 1;
+public static final int NSBezelStylePushDisclosure = 14;
+public static final int NSBezelStyleSmallSquare = 6;
public static final int NSBoldFontMask = 2;
public static final int NSBorderlessWindowMask = 0;
public static final int NSBottomTabsBezelBorder = 2;
public static final int NSBoxCustom = 4;
public static final int NSBoxSeparator = 2;
public static final int NSButtLineCapStyle = 0;
+public static final int NSButtonTypeMomentaryLight = 0;
+public static final int NSButtonTypePushOnPushOff = 1;
+public static final int NSButtonTypeRadio = 4;
+public static final int NSButtonTypeSwitch = 3;
public static final int NSCancelButton = 0;
public static final int NSCarriageReturnCharacter = 13;
public static final int NSClockAndCalendarDatePickerStyle = 1;
@@ -2262,7 +2270,6 @@ public static Selector getSelector (long value) {
public static final int NSMiniaturizableWindowMask = 4;
public static final int NSMiterLineJoinStyle = 0;
public static final int NSMixedState = -1;
-public static final int NSMomentaryLightButton = 0;
public static final int NSMouseEntered = 8;
public static final int NSMouseExited = 9;
public static final int NSMouseMoved = 5;
@@ -2294,19 +2301,14 @@ public static Selector getSelector (long value) {
public static final int NSPrintPanelShowsPageSetupAccessory = 256;
public static final int NSPrintPanelShowsPrintSelection = 32;
public static final int NSProgressIndicatorPreferredThickness = 14;
-public static final int NSPushOnPushOffButton = 1;
public static final int NSRGBColorSpaceModel = 1;
-public static final int NSRadioButton = 4;
public static final int NSRegularControlSize = 0;
-public static final int NSRegularSquareBezelStyle = 2;
public static final int NSResizableWindowMask = 8;
public static final int NSRightMouseDown = 3;
public static final int NSRightMouseDragged = 7;
public static final int NSRightMouseUp = 4;
public static final int NSRoundLineCapStyle = 1;
public static final int NSRoundLineJoinStyle = 1;
-public static final int NSRoundedBezelStyle = 1;
-public static final int NSRoundedDisclosureBezelStyle = 14;
public static final int NSScaleNone = 2;
public static final int NSScrollElasticityNone = 1;
public static final int NSScrollWheel = 22;
@@ -2318,14 +2320,12 @@ public static Selector getSelector (long value) {
public static final int NSScrollerKnobSlot = 6;
public static final int NSScrollerStyleLegacy = 0;
public static final int NSScrollerStyleOverlay = 1;
-public static final int NSShadowlessSquareBezelStyle = 6;
public static final int NSShiftKeyMask = 131072;
public static final int NSSmallControlSize = 1;
public static final int NSSquareLineCapStyle = 2;
public static final int NSStatusWindowLevel = 25;
public static final int NSStringDrawingUsesLineFragmentOrigin = 1;
public static final int NSSubmenuWindowLevel = 3;
-public static final int NSSwitchButton = 3;
public static final int NSSystemDefined = 14;
public static final int NSTabCharacter = 9;
public static final int NSTableColumnNoResizing = 0;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Button.java
index 560a18778b..b397f29869 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Button.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Button.java
@@ -250,27 +250,27 @@ void createHandle () {
superview = superview.superview();
}
}
- int type = OS.NSMomentaryLightButton;
+ int type = OS.NSButtonTypeMomentaryLight;
if ((style & SWT.PUSH) != 0) {
if ((style & SWT.FLAT) != 0) {
- widget.setBezelStyle(OS.NSShadowlessSquareBezelStyle);
+ widget.setBezelStyle(OS.NSBezelStyleSmallSquare);
} else {
- widget.setBezelStyle((style & SWT.WRAP) != 0 ? OS.NSRegularSquareBezelStyle : OS.NSRoundedBezelStyle);
+ widget.setBezelStyle((style & SWT.WRAP) != 0 ? OS.NSBezelStyleFlexiblePush : OS.NSBezelStylePush);
}
} else if ((style & SWT.CHECK) != 0) {
- type = OS.NSSwitchButton;
+ type = OS.NSButtonTypeSwitch;
} else if ((style & SWT.RADIO) != 0) {
- type = OS.NSRadioButton;
+ type = OS.NSButtonTypeRadio;
radioParent = (SWTView) new SWTView().alloc().init();
} else if ((style & SWT.TOGGLE) != 0) {
- type = OS.NSPushOnPushOffButton;
+ type = OS.NSButtonTypePushOnPushOff;
if ((style & SWT.FLAT) != 0) {
- widget.setBezelStyle(OS.NSShadowlessSquareBezelStyle);
+ widget.setBezelStyle(OS.NSBezelStyleSmallSquare);
} else {
- widget.setBezelStyle((style & SWT.WRAP) != 0 ? OS.NSRegularSquareBezelStyle : OS.NSRoundedBezelStyle);
+ widget.setBezelStyle((style & SWT.WRAP) != 0 ? OS.NSBezelStyleFlexiblePush : OS.NSBezelStylePush);
}
} else if ((style & SWT.ARROW) != 0) {
- widget.setBezelStyle(OS.NSShadowlessSquareBezelStyle);
+ widget.setBezelStyle(OS.NSBezelStyleSmallSquare);
}
widget.setButtonType(type);
widget.setTitle(NSString.string());
@@ -363,10 +363,10 @@ void drawBezelWithFrame_inView (long id, long sel, NSRect cellFrame, long viewid
lineWidth = 1f;
}
final long bezelStyle = button.bezelStyle();
- if (bezelStyle == OS.NSRoundedBezelStyle) {
+ if (bezelStyle == OS.NSBezelStylePush) {
NSRect rect2 = smallerRect(cellFrame, 6.5f, 4.5f, 7.5f, lineWidth);
path = NSBezierPath.bezierPathWithRoundedRect(rect2, 3, 3);
- } else if (bezelStyle == OS.NSRegularSquareBezelStyle) {
+ } else if (bezelStyle == OS.NSBezelStyleFlexiblePush) {
NSRect rect2 = smallerRect(cellFrame, 2.5f, 2.5f, 3.5f, lineWidth);
path = NSBezierPath.bezierPathWithRoundedRect(rect2, 3, 3);
} else {
@@ -830,9 +830,9 @@ void setBounds (int x, int y, int width, int height, boolean move, boolean resiz
NSButton button = (NSButton)view;
if (height > heightThreshold) {
- button.setBezelStyle(OS.NSRegularSquareBezelStyle);
+ button.setBezelStyle(OS.NSBezelStyleFlexiblePush);
} else {
- button.setBezelStyle(OS.NSRoundedBezelStyle);
+ button.setBezelStyle(OS.NSBezelStylePush);
}
}
super.setBounds(x, y, width, height, move, resize);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java
index fd19ffebca..871c300a20 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/DateTime.java
@@ -201,8 +201,8 @@ void createHandle () {
if ((this.style & SWT.DROP_DOWN) != 0) {
NSButton buttonWidget = (NSButton)new SWTButton().alloc();
buttonWidget.init();
- buttonWidget.setButtonType(OS.NSMomentaryLightButton);
- buttonWidget.setBezelStyle(OS.NSRoundedDisclosureBezelStyle);
+ buttonWidget.setButtonType(OS.NSButtonTypeMomentaryLight);
+ buttonWidget.setBezelStyle(OS.NSBezelStylePushDisclosure);
buttonWidget.setFocusRingType(OS.NSFocusRingTypeNone);
buttonWidget.setTitle(NSString.stringWith(""));
buttonWidget.setImagePosition(OS.NSNoImage);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java
index 117ece0ff3..7644e3b0b6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Table.java
@@ -586,7 +586,7 @@ void createHandle () {
buttonCell = new NSButtonCell (OS.class_createInstance (cls, 0));
buttonCell.init ();
checkColumn.setDataCell (buttonCell);
- buttonCell.setButtonType (OS.NSSwitchButton);
+ buttonCell.setButtonType (OS.NSButtonTypeSwitch);
buttonCell.setControlSize(OS.NSSmallControlSize);
buttonCell.setImagePosition (OS.NSImageOnly);
buttonCell.setAllowsMixedState (true);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java
index c147e464d0..c3e4d01d11 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tree.java
@@ -616,7 +616,7 @@ void createHandle () {
buttonCell = new NSButtonCell (OS.class_createInstance (cls, 0));
buttonCell.init ();
checkColumn.setDataCell (buttonCell);
- buttonCell.setButtonType (OS.NSSwitchButton);
+ buttonCell.setButtonType (OS.NSButtonTypeSwitch);
buttonCell.setControlSize (OS.NSSmallControlSize);
buttonCell.setImagePosition (OS.NSImageOnly);
buttonCell.setAllowsMixedState (true);