Create a gist now

Instantly share code, notes, and snippets.

using System;
using MonoMac.AppKit;
using MonoMac.Foundation;
namespace CentraStage.Mac
{
[Register("CsTableColumn")]
public class CsTableColumn : NSTableColumn
{
#region Constructors
// Called when created from unmanaged code
public CsTableColumn (IntPtr handle) : base (handle)
{
Initialize ();
}
// Called when created directly from a XIB file
[Export ("initWithCoder:")]
public CsTableColumn (NSCoder coder) : base (coder)
{
Initialize ();
}
// Shared initialization code
void Initialize ()
{
}
#endregion
public string BindingText {
get;
private set;
}
public override void SetValueForKey (NSObject value, NSString key)
{
if (key == "bindingText")
BindingText = value.ToString ();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment