[Mono-osx] [MonoMac] NSSearchField Strongly Typed Cell

kjpou1 kjpou at pt.lu
Tue Nov 30 11:33:02 EST 2010


Thanks.  It works with no problem of course.

I defined it at first as the following:

    [Export ("cell")]
    NSSearchFieldCell Cell { get; set; }

Which overrides the NSControl's Cell field instead of a separate class like
NSPopupButton.cs.  It works fine in my program as well.

Out of curiosity isn't it confusing to rename the field SearchFieldCell
instead of just Cell or is it because you are only defining a getter as per
the Discussion section of the documentation for setCell?


Use this method with great care as it can irrevocably damage the affected
control; specifically, you should only use this method in initializers for
subclasses of NSControl.

Either way is fine am just trying to understand.


View this message in context: http://mono.1490590.n4.nabble.com/MonoMac-NSSearchField-Strongly-Typed-Cell-tp3065453p3065711.html
Sent from the Mono - OSX mailing list archive at Nabble.com.

More information about the Mono-osx mailing list