Bug 260370: Allow to show magnifier icon for Text with SWT.SEARCH
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 ebf557c..ea5f403 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
@@ -17491,7 +17491,7 @@
 <retval></retval>
 </method>
 </class>
-<class name="NSSearchFieldCell" swt_superclass="NSTextFieldCell">
+<class name="NSSearchFieldCell" swt_gen="mixed" swt_superclass="NSTextFieldCell">
 <method selector="cancelButtonCell">
 <retval></retval>
 </method>
@@ -17534,9 +17534,9 @@
 <method selector="sendsWholeSearchString">
 <retval></retval>
 </method>
-<method selector="setCancelButtonCell:">
-<arg name="cell"></arg>
-<retval></retval>
+<method selector="setCancelButtonCell:" swt_gen="true">
+<arg name="cell" swt_gen="true"></arg>
+<retval swt_gen="true"></retval>
 </method>
 <method selector="setMaximumRecents:">
 <arg name="maxRecents"></arg>
@@ -17550,9 +17550,9 @@
 <arg name="string"></arg>
 <retval></retval>
 </method>
-<method selector="setSearchButtonCell:">
-<arg name="cell"></arg>
-<retval></retval>
+<method selector="setSearchButtonCell:" swt_gen="true">
+<arg name="cell" swt_gen="true"></arg>
+<retval swt_gen="true"></retval>
 </method>
 <method selector="setSearchMenuTemplate:">
 <arg name="menu"></arg>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSSearchFieldCell.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSSearchFieldCell.java
new file mode 100644
index 0000000..dfb81a6
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSSearchFieldCell.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2008 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *    IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.internal.cocoa;
+
+public class NSSearchFieldCell extends NSTextFieldCell {
+
+public NSSearchFieldCell() {
+	super();
+}
+
+public NSSearchFieldCell(int /*long*/ id) {
+	super(id);
+}
+
+public NSSearchFieldCell(id id) {
+	super(id);
+}
+
+public void setCancelButtonCell(NSButtonCell cell) {
+	OS.objc_msgSend(this.id, OS.sel_setCancelButtonCell_, cell != null ? cell.id : 0);
+}
+
+public void setSearchButtonCell(NSButtonCell cell) {
+	OS.objc_msgSend(this.id, OS.sel_setSearchButtonCell_, cell != null ? cell.id : 0);
+}
+
+}
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 4aae429..aeffadb 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
@@ -370,6 +370,7 @@
 public static final int /*long*/ class_NSScrollView = objc_getClass("NSScrollView");
 public static final int /*long*/ class_NSScroller = objc_getClass("NSScroller");
 public static final int /*long*/ class_NSSearchField = objc_getClass("NSSearchField");
+public static final int /*long*/ class_NSSearchFieldCell = objc_getClass("NSSearchFieldCell");
 public static final int /*long*/ class_NSSecureTextField = objc_getClass("NSSecureTextField");
 public static final int /*long*/ class_NSSet = objc_getClass("NSSet");
 public static final int /*long*/ class_NSSlider = objc_getClass("NSSlider");
@@ -1144,6 +1145,7 @@
 public static final int /*long*/ sel_setCanChooseDirectories_ = sel_registerName("setCanChooseDirectories:");
 public static final int /*long*/ sel_setCanChooseFiles_ = sel_registerName("setCanChooseFiles:");
 public static final int /*long*/ sel_setCanCreateDirectories_ = sel_registerName("setCanCreateDirectories:");
+public static final int /*long*/ sel_setCancelButtonCell_ = sel_registerName("setCancelButtonCell:");
 public static final int /*long*/ sel_setCell_ = sel_registerName("setCell:");
 public static final int /*long*/ sel_setCellClass_ = sel_registerName("setCellClass:");
 public static final int /*long*/ sel_setClip = sel_registerName("setClip");
@@ -1263,6 +1265,7 @@
 public static final int /*long*/ sel_setResourceLoadDelegate_ = sel_registerName("setResourceLoadDelegate:");
 public static final int /*long*/ sel_setRichText_ = sel_registerName("setRichText:");
 public static final int /*long*/ sel_setRowHeight_ = sel_registerName("setRowHeight:");
+public static final int /*long*/ sel_setSearchButtonCell_ = sel_registerName("setSearchButtonCell:");
 public static final int /*long*/ sel_setSelectable_ = sel_registerName("setSelectable:");
 public static final int /*long*/ sel_setSelectedRange_ = sel_registerName("setSelectedRange:");
 public static final int /*long*/ sel_setShouldAntialias_ = sel_registerName("setShouldAntialias:");