Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSObject.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSObject.java48
1 files changed, 24 insertions, 24 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSObject.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSObject.java
index c8ffbd8331..fe68483433 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSObject.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSObject.java
@@ -16,7 +16,7 @@ public NSObject() {
super();
}
-public NSObject(int /*long*/ id) {
+public NSObject(long /*int*/ id) {
super(id);
}
@@ -30,7 +30,7 @@ public NSObject alloc() {
}
public id accessibilityAttributeValue(NSString attribute, id parameter) {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_accessibilityAttributeValue_forParameter_, attribute != null ? attribute.id : 0, parameter != null ? parameter.id : 0);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_accessibilityAttributeValue_forParameter_, attribute != null ? attribute.id : 0, parameter != null ? parameter.id : 0);
return result != 0 ? new id(result) : null;
}
@@ -38,12 +38,12 @@ public boolean accessibilitySetOverrideValue(id value, NSString attribute) {
return OS.objc_msgSend_bool(this.id, OS.sel_accessibilitySetOverrideValue_forAttribute_, value != null ? value.id : 0, attribute != null ? attribute.id : 0);
}
-public void draggedImage(NSImage image, NSPoint screenPoint, int /*long*/ operation) {
+public void draggedImage(NSImage image, NSPoint screenPoint, long /*int*/ operation) {
OS.objc_msgSend(this.id, OS.sel_draggedImage_endedAt_operation_, image != null ? image.id : 0, screenPoint, operation);
}
public NSWindow draggingDestinationWindow() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_draggingDestinationWindow);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_draggingDestinationWindow);
return result != 0 ? new NSWindow(result) : null;
}
@@ -54,11 +54,11 @@ public NSPoint draggingLocation() {
}
public NSPasteboard draggingPasteboard() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_draggingPasteboard);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_draggingPasteboard);
return result != 0 ? new NSPasteboard(result) : null;
}
-public int /*long*/ draggingSourceOperationMask() {
+public long /*int*/ draggingSourceOperationMask() {
return OS.objc_msgSend(this.id, OS.sel_draggingSourceOperationMask);
}
@@ -66,7 +66,7 @@ public boolean outlineView(NSOutlineView outlineView, NSTableColumn tableColumn,
return OS.objc_msgSend_bool(this.id, OS.sel_outlineView_shouldEditTableColumn_item_, outlineView != null ? outlineView.id : 0, tableColumn != null ? tableColumn.id : 0, item != null ? item.id : 0);
}
-public boolean outlineView(NSOutlineView outlineView, int /*long*/ columnIndex, int /*long*/ newColumnIndex) {
+public boolean outlineView(NSOutlineView outlineView, long /*int*/ columnIndex, long /*int*/ newColumnIndex) {
return OS.objc_msgSend_bool(this.id, OS.sel_outlineView_shouldReorderColumn_toColumn_, outlineView != null ? outlineView.id : 0, columnIndex, newColumnIndex);
}
@@ -82,15 +82,15 @@ public boolean readSelectionFromPasteboard(NSPasteboard pboard) {
return OS.objc_msgSend_bool(this.id, OS.sel_readSelectionFromPasteboard_, pboard != null ? pboard.id : 0);
}
-public boolean tableView(NSTableView tableView, int /*long*/ columnIndex, int /*long*/ newColumnIndex) {
+public boolean tableView(NSTableView tableView, long /*int*/ columnIndex, long /*int*/ newColumnIndex) {
return OS.objc_msgSend_bool(this.id, OS.sel_tableView_shouldReorderColumn_toColumn_, tableView != null ? tableView.id : 0, columnIndex, newColumnIndex);
}
-public boolean tableView(NSTableView tableView, int /*long*/ row) {
+public boolean tableView(NSTableView tableView, long /*int*/ row) {
return OS.objc_msgSend_bool(this.id, OS.sel_tableView_shouldSelectRow_, tableView != null ? tableView.id : 0, row);
}
-public boolean tableView(NSTableView tableView, NSCell cell, NSTableColumn tableColumn, int /*long*/ row) {
+public boolean tableView(NSTableView tableView, NSCell cell, NSTableColumn tableColumn, long /*int*/ row) {
return OS.objc_msgSend_bool(this.id, OS.sel_tableView_shouldTrackCell_forTableColumn_row_, tableView != null ? tableView.id : 0, cell != null ? cell.id : 0, tableColumn != null ? tableColumn.id : 0, row);
}
@@ -99,7 +99,7 @@ public boolean writeSelectionToPasteboard(NSPasteboard pboard, NSArray types) {
}
public NSObject autorelease() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_autorelease);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_autorelease);
return result == this.id ? this : (result != 0 ? new NSObject(result) : null);
}
@@ -108,7 +108,7 @@ public void cancelAuthenticationChallenge(NSURLAuthenticationChallenge challenge
}
public NSString className() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_className);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_className);
return result != 0 ? new NSString(result) : null;
}
@@ -117,17 +117,17 @@ public boolean conformsToProtocol(Protocol aProtocol) {
}
public id copy() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_copy);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_copy);
return result != 0 ? new id(result) : null;
}
public NSString description() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_description);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_description);
return result != 0 ? new NSString(result) : null;
}
public NSObject init() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_init);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_init);
return result == this.id ? this : (result != 0 ? new NSObject(result) : null);
}
@@ -139,20 +139,20 @@ public boolean isEqualTo(id object) {
return OS.objc_msgSend_bool(this.id, OS.sel_isEqualTo_, object != null ? object.id : 0);
}
-public boolean isKindOfClass(int /*long*/ aClass) {
+public boolean isKindOfClass(long /*int*/ aClass) {
return OS.objc_msgSend_bool(this.id, OS.sel_isKindOfClass_, aClass);
}
public id mutableCopy() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_mutableCopy);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_mutableCopy);
return result != 0 ? new id(result) : null;
}
-public void performSelector(int /*long*/ aSelector, id anArgument, double delay, NSArray modes) {
+public void performSelector(long /*int*/ aSelector, id anArgument, double delay, NSArray modes) {
OS.objc_msgSend(this.id, OS.sel_performSelector_withObject_afterDelay_inModes_, aSelector, anArgument != null ? anArgument.id : 0, delay, modes != null ? modes.id : 0);
}
-public void performSelectorOnMainThread(int /*long*/ aSelector, id arg, boolean wait) {
+public void performSelectorOnMainThread(long /*int*/ aSelector, id arg, boolean wait) {
OS.objc_msgSend(this.id, OS.sel_performSelectorOnMainThread_withObject_waitUntilDone_, aSelector, arg != null ? arg.id : 0, wait);
}
@@ -160,16 +160,16 @@ public void release() {
OS.objc_msgSend(this.id, OS.sel_release);
}
-public boolean respondsToSelector(int /*long*/ aSelector) {
+public boolean respondsToSelector(long /*int*/ aSelector) {
return OS.objc_msgSend_bool(this.id, OS.sel_respondsToSelector_, aSelector);
}
public id retain() {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_retain);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_retain);
return result != 0 ? new id(result) : null;
}
-public int /*long*/ retainCount() {
+public long /*int*/ retainCount() {
return OS.objc_msgSend(this.id, OS.sel_retainCount);
}
@@ -177,7 +177,7 @@ public void setValue(id value, NSString key) {
OS.objc_msgSend(this.id, OS.sel_setValue_forKey_, value != null ? value.id : 0, key != null ? key.id : 0);
}
-public int /*long*/ superclass() {
+public long /*int*/ superclass() {
return OS.objc_msgSend(this.id, OS.sel_superclass);
}
@@ -186,7 +186,7 @@ public void useCredential(NSURLCredential credential, NSURLAuthenticationChallen
}
public id valueForKey(NSString key) {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_valueForKey_, key != null ? key.id : 0);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_valueForKey_, key != null ? key.id : 0);
return result != 0 ? new id(result) : null;
}

Back to the top