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 5cccce85f49..4b185e54240 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
@@ -2547,6 +2547,15 @@
+
+
+
+
+
+
+
+
+
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 41ee2f9d8f9..886e94c84ea 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
@@ -4377,7 +4377,6 @@
-
@@ -4389,7 +4388,6 @@
-
@@ -4402,7 +4400,6 @@
-
@@ -4425,7 +4422,6 @@
-
@@ -4459,7 +4455,6 @@
-
@@ -4471,7 +4466,6 @@
-
@@ -4495,6 +4489,7 @@
+
@@ -4535,7 +4530,6 @@
-
@@ -4547,7 +4541,6 @@
-
@@ -4560,6 +4553,15 @@
+
+
+
+
+
+
+
+
+
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 a6bf465bf1f..cd24777ad62 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
@@ -2164,7 +2164,7 @@ public static Selector getSelector (long value) {
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;
@@ -2176,7 +2176,7 @@ public static Selector getSelector (long value) {
public static final int NSCancelButton = 0;
public static final int NSCarriageReturnCharacter = 13;
public static final int NSClockAndCalendarDatePickerStyle = 1;
-public static final int NSClosableWindowMask = 2;
+
public static final int NSClosePathBezierPathElement = 3;
public static final int NSCommandKeyMask = 1048576;
public static final int NSCompositeClear = 0;
@@ -2189,7 +2189,7 @@ public static Selector getSelector (long value) {
public static final int NSCurveToBezierPathElement = 2;
public static final int NSDeleteCharacter = 127;
public static final long NSDeviceIndependentModifierFlagsMask = 4294901760L;
-public static final int NSDocModalWindowMask = 64;
+
public static final int NSDragOperationCopy = 1;
public static final int NSDragOperationDelete = 32;
public static final long NSDragOperationEvery = -1L;
@@ -2213,7 +2213,7 @@ public static Selector getSelector (long value) {
public static final int NSFocusRingTypeNone = 1;
public static final int NSFontPanelAllEffectsModeMask = 1048320;
public static final int NSFontPanelAllModesMask = -1;
-public static final int NSFullScreenWindowMask = 16384;
+
public static final int NSHelpFunctionKey = 63302;
public static final int NSHelpKeyMask = 4194304;
public static final int NSHourMinuteDatePickerElementFlag = 12;
@@ -2247,7 +2247,7 @@ public static Selector getSelector (long value) {
public static final int NSLineBreakByWordWrapping = 0;
public static final int NSLineToBezierPathElement = 1;
public static final int NSMiniControlSize = 2;
-public static final int NSMiniaturizableWindowMask = 4;
+
public static final int NSMiterLineJoinStyle = 0;
public static final int NSMixedState = -1;
public static final int NSMouseEntered = 8;
@@ -2259,7 +2259,7 @@ public static Selector getSelector (long value) {
public static final int NSNoImage = 0;
public static final int NSNoTitle = 0;
public static final int NSNonZeroWindingRule = 0;
-public static final int NSNonactivatingPanelMask = 128;
+
public static final int NSOffState = 0;
public static final int NSOnState = 1;
public static final int NSOpenGLCPSurfaceOrder = 235;
@@ -2283,6 +2283,7 @@ public static Selector getSelector (long value) {
public static final int NSProgressIndicatorPreferredThickness = 14;
public static final int NSRGBColorSpaceModel = 1;
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;
@@ -2323,7 +2324,7 @@ public static Selector getSelector (long value) {
public static final int NSTextAlignmentRight = IS_X86_64 ? 1 : 2;
public static final int NSTextFieldAndStepperDatePickerStyle = 0;
public static final int NSTextFieldDatePickerStyle = 2;
-public static final int NSTitledWindowMask = 1;
+
public static final int NSToolbarDisplayModeIconOnly = 2;
public static final long NSTouchPhaseAny = -1L;
public static final int NSTouchPhaseBegan = 1;
@@ -2335,7 +2336,7 @@ public static Selector getSelector (long value) {
public static final int NSUnderlineStyleNone = 0;
public static final int NSUnderlineStyleSingle = 1;
public static final int NSUnderlineStyleThick = 2;
-public static final int NSUtilityWindowMask = 16;
+
public static final int NSViewHeightSizable = 16;
public static final int NSViewMaxXMargin = 4;
public static final int NSViewMaxYMargin = 32;
@@ -2348,6 +2349,15 @@ public static Selector getSelector (long value) {
public static final int NSWindowCollectionBehaviorFullScreenAuxiliary = 256;
public static final int NSWindowCollectionBehaviorFullScreenPrimary = 128;
public static final int NSWindowCollectionBehaviorMoveToActiveSpace = 2;
+public static final int NSWindowStyleMaskBorderless = 0;
+public static final int NSWindowStyleMaskClosable = 2;
+public static final int NSWindowStyleMaskDocModalWindow = 64;
+public static final int NSWindowStyleMaskFullScreen = 16384;
+public static final int NSWindowStyleMaskMiniaturizable = 4;
+public static final int NSWindowStyleMaskNonactivatingPanel = 128;
+public static final int NSWindowStyleMaskResizable = 8;
+public static final int NSWindowStyleMaskTitled = 1;
+public static final int NSWindowStyleMaskUtilityWindow = 16;
public static final int NSWritingDirectionLeftToRight = 0;
public static final int NSWritingDirectionRightToLeft = 1;
public static final int NSYearMonthDatePickerElementFlag = 192;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/Printer.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/Printer.java
index 6711a2bc3cb..ba687a4fe17 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/Printer.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/cocoa/org/eclipse/swt/printing/Printer.java
@@ -242,7 +242,7 @@ protected void create(DeviceData deviceData) {
}
NSRect rect = new NSRect();
window = (NSWindow)new NSWindow().alloc();
- window.initWithContentRect(rect, OS.NSBorderlessWindowMask, OS.NSBackingStoreBuffered, false);
+ window.initWithContentRect(rect, OS.NSWindowStyleMaskBorderless, OS.NSBackingStoreBuffered, false);
String className = "SWTPrinterView"; //$NON-NLS-1$
if (OS.objc_lookUpClass(className) == 0) {
long cls = OS.objc_allocateClassPair(OS.class_NSView, className, 0);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
index af03caace51..ab9d700c3fd 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java
@@ -3359,7 +3359,7 @@ public long internal_new_GC (GCData data) {
if (screenWindow == null) {
NSWindow window = (NSWindow) new NSWindow ().alloc ();
NSRect rect = new NSRect();
- window = window.initWithContentRect(rect, OS.NSBorderlessWindowMask, OS.NSBackingStoreBuffered, false);
+ window = window.initWithContentRect(rect, OS.NSWindowStyleMaskBorderless, OS.NSBackingStoreBuffered, false);
window.setReleasedWhenClosed(false);
screenWindow = window;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
index a8692deb927..9ef9aa678ea 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Shell.java
@@ -554,7 +554,7 @@ boolean canBecomeKeyWindow (long id, long sel) {
}
}
long styleMask = window.styleMask();
- if (styleMask == OS.NSBorderlessWindowMask || (styleMask & (OS.NSNonactivatingPanelMask | OS.NSDocModalWindowMask | OS.NSResizableWindowMask)) != 0) return true;
+ if (styleMask == OS.NSWindowStyleMaskBorderless || (styleMask & (OS.NSWindowStyleMaskNonactivatingPanel | OS.NSWindowStyleMaskDocModalWindow | OS.NSWindowStyleMaskResizable)) != 0) return true;
}
return super.canBecomeKeyWindow (id, sel);
}
@@ -653,23 +653,23 @@ public Rectangle computeTrim (int x, int y, int width, int height) {
void createHandle () {
state |= HIDDEN;
if (window == null && view == null) {
- int styleMask = OS.NSBorderlessWindowMask;
+ int styleMask = OS.NSWindowStyleMaskBorderless;
if ((style & (SWT.TOOL | SWT.SHEET)) != 0) {
window = (NSWindow) new SWTPanel().alloc();
if ((style & SWT.SHEET) != 0) {
- styleMask |= OS.NSDocModalWindowMask;
+ styleMask |= OS.NSWindowStyleMaskDocModalWindow;
} else {
- styleMask |= OS.NSUtilityWindowMask | OS.NSNonactivatingPanelMask;
+ styleMask |= OS.NSWindowStyleMaskUtilityWindow | OS.NSWindowStyleMaskNonactivatingPanel;
}
} else {
window = (NSWindow) new SWTWindow().alloc ();
}
if ((style & SWT.NO_TRIM) == 0) {
- if ((style & SWT.TITLE) != 0) styleMask |= OS.NSTitledWindowMask;
- if ((style & SWT.CLOSE) != 0) styleMask |= OS.NSClosableWindowMask;
- if ((style & SWT.MIN) != 0) styleMask |= OS.NSMiniaturizableWindowMask;
- if ((style & SWT.MAX) != 0) styleMask |= OS.NSResizableWindowMask;
- if ((style & SWT.RESIZE) != 0) styleMask |= OS.NSResizableWindowMask;
+ if ((style & SWT.TITLE) != 0) styleMask |= OS.NSWindowStyleMaskTitled;
+ if ((style & SWT.CLOSE) != 0) styleMask |= OS.NSWindowStyleMaskClosable;
+ if ((style & SWT.MIN) != 0) styleMask |= OS.NSWindowStyleMaskMiniaturizable;
+ if ((style & SWT.MAX) != 0) styleMask |= OS.NSWindowStyleMaskResizable;
+ if ((style & SWT.RESIZE) != 0) styleMask |= OS.NSWindowStyleMaskResizable;
}
NSScreen screen = null;
NSScreen primaryScreen = new NSScreen(NSScreen.screens().objectAtIndex(0));
@@ -683,7 +683,7 @@ void createHandle () {
window.setMovable(false);
}
if ((style & SWT.TOOL) != 0) {
- // Feature in Cocoa: NSPanels that use NSUtilityWindowMask are always promoted to the floating window layer.
+ // Feature in Cocoa: NSPanels that use NSWindowStyleMaskUtilityWindow are always promoted to the floating window layer.
// Fix is to call setFloatingPanel:NO, which turns off this behavior.
((NSPanel)window).setFloatingPanel(false);
// By default, panels hide on deactivation.
@@ -987,7 +987,7 @@ public boolean getFullScreen () {
boolean _getFullScreen () {
if ((window.collectionBehavior() & OS.NSWindowCollectionBehaviorFullScreenPrimary) != 0) {
- return (window.styleMask() & OS.NSFullScreenWindowMask) != 0 ? true : false;
+ return (window.styleMask() & OS.NSWindowStyleMaskFullScreen) != 0 ? true : false;
}
return fullScreen;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tracker.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tracker.java
index 2f96892de71..2e4925356d4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tracker.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Tracker.java
@@ -765,7 +765,7 @@ public boolean open () {
NSScreen screen = new NSScreen(screens.objectAtIndex(i));
NSRect frame = screen.frame();
NSWindow window = (NSWindow)new NSWindow().alloc();
- window = window.initWithContentRect(frame, OS.NSBorderlessWindowMask, OS.NSBackingStoreBuffered, false);
+ window = window.initWithContentRect(frame, OS.NSWindowStyleMaskBorderless, OS.NSBackingStoreBuffered, false);
window.setOpaque(false);
window.setLevel(OS.NSStatusWindowLevel);
window.setContentView(null);