public System.nint GetChildrenCount(AppKit.NSOutlineView outlineView, Foundation.NSObject item) { var children = childrenForItem(item as Element); Console.WriteLine(children.Count); return(children.Count); }
public AppKit.NSView GetView(AppKit.NSOutlineView outlineView, AppKit.NSTableColumn tableColumn, Foundation.NSObject item) { var element = item as Element; return(element.GetView(outlineView, this)); }
public System.nfloat GetRowHeight(AppKit.NSOutlineView outlineView, Foundation.NSObject item) { return(item is EqualizerMenuElement ? 44 : 26); }
public Foundation.NSObject GetObjectValue(AppKit.NSOutlineView outlineView, AppKit.NSTableColumn tableColumn, Foundation.NSObject item) { return(item); }
public bool ShouldShowOutlineCell(AppKit.NSOutlineView outlineView, Foundation.NSObject item) { var element = item as Element; return(element != null && element.ShouldOutline); }
public bool IsGroupItem(AppKit.NSOutlineView outlineView, Foundation.NSObject item) { return(item is MenuSection); }
public bool ItemExpandable(AppKit.NSOutlineView outlineView, Foundation.NSObject item) { var section = item as MenuSection; return(section != null && section.IsExpandable); }
public Foundation.NSObject GetChild(AppKit.NSOutlineView outlineView, System.nint childIndex, Foundation.NSObject item) { var child = childrenForItem(item as Element) [(int)childIndex]; return(child); }