Exemplo n.º 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);
        }
Exemplo n.º 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));
        }
Exemplo n.º 3
0
 public System.nfloat GetRowHeight(AppKit.NSOutlineView outlineView, Foundation.NSObject item)
 {
     return(item is EqualizerMenuElement ? 44 : 26);
 }
Exemplo n.º 4
0
 public Foundation.NSObject GetObjectValue(AppKit.NSOutlineView outlineView, AppKit.NSTableColumn tableColumn, Foundation.NSObject item)
 {
     return(item);
 }
Exemplo n.º 5
0
        public bool ShouldShowOutlineCell(AppKit.NSOutlineView outlineView, Foundation.NSObject item)
        {
            var element = item as Element;

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

            return(section != null && section.IsExpandable);
        }
Exemplo n.º 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);
        }