summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2008-07-10 21:06:34 +0000
committerSilenio Quarti <silenio>2008-07-10 21:06:34 +0000
commit6b130b31eaa4ab6cdb0628482e2e6a71200ff714 (patch)
tree96e506f963d0fa522e756b29bb965c71fc3c2c36
parenta846e7400bdf8acad36d5d96b3648a684135ed83 (diff)
downloadeclipse.platform.swt-6b130b31eaa4ab6cdb0628482e2e6a71200ff714.tar.gz
eclipse.platform.swt-6b130b31eaa4ab6cdb0628482e2e6a71200ff714.tar.xz
eclipse.platform.swt-6b130b31eaa4ab6cdb0628482e2e6a71200ff714.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSObject.java4
1 files changed, 4 insertions, 0 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 146b4c60c8..34ac958dd8 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
@@ -175,6 +175,10 @@ public void cancelAuthenticationChallenge(NSURLAuthenticationChallenge challenge
OS.objc_msgSend(this.id, OS.sel_cancelAuthenticationChallenge_1, challenge != null ? challenge.id : 0);
}
+public boolean conformsToProtocol (int protocol) {
+ return OS.objc_msgSend (id, OS.sel_conformsToProtocol_1, protocol) != 0;
+}
+
public static void static_cancelPreviousPerformRequestsWithTarget_(id aTarget) {
OS.objc_msgSend(OS.class_NSObject, OS.sel_cancelPreviousPerformRequestsWithTarget_1, aTarget != null ? aTarget.id : 0);
}