summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNotificationQueue.java
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNotificationQueue.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNotificationQueue.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNotificationQueue.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNotificationQueue.java
new file mode 100644
index 0000000000..903a6fe505
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNotificationQueue.java
@@ -0,0 +1,35 @@
+package org.eclipse.swt.internal.cocoa;
+
+public class NSNotificationQueue extends NSObject {
+
+public NSNotificationQueue() {
+ super();
+}
+
+public NSNotificationQueue(int id) {
+ super(id);
+}
+
+public static id defaultQueue() {
+ int result = OS.objc_msgSend(OS.class_NSNotificationQueue, OS.sel_defaultQueue);
+ return result != 0 ? new id(result) : null;
+}
+
+public void dequeueNotificationsMatching(NSNotification notification, int coalesceMask) {
+ OS.objc_msgSend(this.id, OS.sel_dequeueNotificationsMatching_1coalesceMask_1, notification != null ? notification.id : 0, coalesceMask);
+}
+
+public void enqueueNotification_postingStyle_(NSNotification notification, int postingStyle) {
+ OS.objc_msgSend(this.id, OS.sel_enqueueNotification_1postingStyle_1, notification != null ? notification.id : 0, postingStyle);
+}
+
+public void enqueueNotification_postingStyle_coalesceMask_forModes_(NSNotification notification, int postingStyle, int coalesceMask, NSArray modes) {
+ OS.objc_msgSend(this.id, OS.sel_enqueueNotification_1postingStyle_1coalesceMask_1forModes_1, notification != null ? notification.id : 0, postingStyle, coalesceMask, modes != null ? modes.id : 0);
+}
+
+public id initWithNotificationCenter(NSNotificationCenter notificationCenter) {
+ int result = OS.objc_msgSend(this.id, OS.sel_initWithNotificationCenter_1, notificationCenter != null ? notificationCenter.id : 0);
+ return result != 0 ? new id(result) : null;
+}
+
+}