[Mono-osx] [MonoMac] NSSearchField Strongly Typed Cell
kjpou1
kjpou at pt.lu
Tue Nov 30 09:20:30 EST 2010
Hello all
Can we add the following to the AppKit sources to strongly type the Cell
field to be NSSearchFieldCell instead of just NSCell. I followed the
NSPopupButton.cs source to do this but adding it directly to the
NSSearchField works as well.
New module /Appkit/NSSearchField.cs
//
// Added to strongly type the NSSearchField Cell
//
using System;
using MonoMac.ObjCRuntime;
using MonoMac.Foundation;
namespace MonoMac.AppKit {
public partial class NSSearchField {
public new NSSearchFieldCell Cell {
get { return (NSSearchFieldCell)base.Cell; }
set { base.Cell = value; }
}
}
}
-----------------------------------------
Makefile will have to be updated to include the following:
./AppKit/NSSearchField.cs \
-----------------------------------------
Kenneth
--
View this message in context: http://mono.1490590.n4.nabble.com/MonoMac-NSSearchField-Strongly-Typed-Cell-tp3065453p3065453.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
More information about the Mono-osx
mailing list