Inheritance: MonoMac.Foundation.NSObject
Esempio n. 1
0
		public override NSObject GetChild (NSOutlineView outlineView, int index, NSObject item)
		{
			WrapNode wrap;
			Node n = (Node) (item == null ? Root : (Node) GetNode (item)).Nodes [index];

			if (nodeToWrapper.ContainsKey (n))
				return nodeToWrapper [n];
			wrap = new WrapNode (n);
			nodeToWrapper [n] = wrap;
			return wrap;
		}
Esempio n. 2
0
        public override NSObject GetChild(NSOutlineView outlineView, int index, NSObject item)
        {
            WrapNode wrap;
            Node     n = (Node)(item == null ? Root : (Node)GetNode(item)).Nodes [index];

            if (nodeToWrapper.ContainsKey(n))
            {
                return(nodeToWrapper [n]);
            }
            wrap = new WrapNode(n);
            nodeToWrapper [n] = wrap;
            return(wrap);
        }
Esempio n. 3
0
            public override void SelectionDidChange(NSNotification notification)
            {
                if (parent.ignoreSelect)
                {
                    return;
                }

                var indexes = parent.outlineView.SelectedRows;

                if (indexes.Count == 0)
                {
                    return;
                }

                var node = WrapNode.FromObject(parent.outlineView.ItemAtRow((int)indexes.FirstIndex));

                parent.LoadUrl(node.PublicUrl, false, node.Tree.HelpSource);
            }
Esempio n. 4
0
 static Node GetNode(NSObject obj)
 {
     return(WrapNode.FromObject(obj));
 }