[Mono-osx] [MonoMac] PopupBindings Sample
kjpou1
kjpou at pt.lu
Fri Nov 19 03:25:03 EST 2010
Hello all
Here is another sample program that demonstrates the use of bindings for
Popup Button.
The information information that is bound to in the NSArrayController is a
customer class called Person.cs that implements the KVO model.
http://mono.1490590.n4.nabble.com/file/n3050028/PopupBindings.zip
PopupBindings.zip
To get this sample to work a change to NSMutableDictionary.cs is necessary
as follows:
// Commented out as this was not working. Kenneth J. Pouncey 2010/11/18
// public bool ContainsKey (NSObject key)
// {
// if (key == null)
// throw new ArgumentNullException ("key");
// var keys = NSArray.FromNSObjects (new [] {key});
// var values = ObjectsForKeys (keys, marker);
// return object.ReferenceEquals (marker, values [0]);
// }
Once that is commented out it will use the base class's ContainsKey method
which does a simple check that works.
Kenneth
--
View this message in context: http://mono.1490590.n4.nabble.com/MonoMac-PopupBindings-Sample-tp3050028p3050028.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
More information about the Mono-osx
mailing list