Skip to content

Instantly share code, notes, and snippets.

@deapsquatter
Created October 1, 2013 15:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deapsquatter/6779997 to your computer and use it in GitHub Desktop.
Save deapsquatter/6779997 to your computer and use it in GitHub Desktop.
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