Example #1
0
        public System.nint GetChildrenCount(AppKit.NSOutlineView outlineView, Foundation.NSObject item)
        {
            var children = childrenForItem(item as Element);

            Console.WriteLine(children.Count);
            return(children.Count);
        }
Example #2
0
        public AppKit.NSView GetView(AppKit.NSOutlineView outlineView, AppKit.NSTableColumn tableColumn, Foundation.NSObject item)
        {
            var element = item as Element;

            return(element.GetView(outlineView, this));
        }
Example #3
0
 public System.nfloat GetRowHeight(AppKit.NSOutlineView outlineView, Foundation.NSObject item)
 {
     return(item is EqualizerMenuElement ? 44 : 26);
 }
Example #4
0
 public Foundation.NSObject GetObjectValue(AppKit.NSOutlineView outlineView, AppKit.NSTableColumn tableColumn, Foundation.NSObject item)
 {
     return(item);
 }
Example #5
0
        public bool ShouldShowOutlineCell(AppKit.NSOutlineView outlineView, Foundation.NSObject item)
        {
            var element = item as Element;

            return(element != null && element.ShouldOutline);
        }
Example #6
0
 public bool IsGroupItem(AppKit.NSOutlineView outlineView, Foundation.NSObject item)
 {
     return(item is MenuSection);
 }
Example #7
0
        public bool ItemExpandable(AppKit.NSOutlineView outlineView, Foundation.NSObject item)
        {
            var section = item as MenuSection;

            return(section != null && section.IsExpandable);
        }
Example #8
0
        public Foundation.NSObject GetChild(AppKit.NSOutlineView outlineView, System.nint childIndex, Foundation.NSObject item)
        {
            var child = childrenForItem(item as Element) [(int)childIndex];

            return(child);
        }