Пример #1
0
        //"outlineView:rowViewForItem:"
        public override NSTableRowView RowViewForItem(NSOutlineView outlineView, NSObject item)
        {
            var rowView = new IndexTableRowView();

            rowView.Level = 1;

            return(rowView);
        }
        public override NSTableRowView RowViewForItem(NSOutlineView outlineView, NSObject item)
        {
            var rowView = new IndexTableRowView();

            int level;

            if (indexDataManager.IsGroupItem(item))
            {
                level = 1;
            }
            else
            {
                level = 2;
            }

            rowView.Level = level;

            return(rowView);
        }