public void tableView_setObjectValue_forTableColumn_row(NSTableView table, NSObject value, NSTableColumn col, int row) { NSMutableDictionary dict = m_data.objectAtIndex((uint) row).To<NSMutableDictionary>(); dict.setObject_forKey(value, col.identifier()); DoUpdateChart(); }
public void tableView_setObjectValue_forTableColumn_row(NSTableView table, NSObject value, NSTableColumn col, int row) { Contract.Requires(row >= 0, "row is negative"); Contract.Requires(row < m_globs.Count, "row is too big"); switch (col.identifier().description()) { case "1": m_globs[row] = Tuple.Create(value.description(), m_globs[row].Item2); break; case "2": m_globs[row] = Tuple.Create(m_globs[row].Item1, value.Call("intValue").To<int>()); break; default: Contract.Assert(false, "bad col: " + col.identifier()); break; } DoSyncPref(); }
public NSObject tableView_objectValueForTableColumn_row(NSTableView table, NSTableColumn col, int row) { NSDictionary dict = m_data.objectAtIndex((uint) row).To<NSDictionary>(); return dict.objectForKey(col.identifier()); }
public NSObject tableView_objectValueForTableColumn_row(NSTableView table, NSTableColumn col, int row) { Contract.Requires(row >= 0, "row is negative"); Contract.Requires(row < m_globs.Count, "row is too big"); switch (col.identifier().description()) { case "1": return NSString.Create(m_globs[row].Item1); case "2": return NSNumber.Create(m_globs[row].Item2); default: Contract.Assert(false, "bad col: " + col.identifier()); return NSString.Empty; } }
public NSObject tableView_objectValueForTableColumn_row(NSTableView table, NSTableColumn col, int row) { if (m_threads.Count == 0 || !Debugger.IsRunning) return NSString.Empty; ThreadMirror thread = m_threads[row]; if (col.identifier().ToString() == "0") { string name; if (m_names.TryGetValue(thread.Id, out name)) name = string.Format("{0} ({1})", name, thread.Id); else name = GetThreadName(thread); return DoCreateString(name, row); } else if (col.identifier().ToString() == "1") { return DoCreateString(thread.ThreadState.ToString(), row); } else { return DoCreateString(thread.Domain.FriendlyName, row); } }
public NSObject tableView_objectValueForTableColumn_row(NSTableView table, NSTableColumn col, int row) { if (m_stack == null) return NSString.Empty; row = m_stack.Length - row - 1; // draw the frames top down LiveStackFrame frame = m_stack[row]; if (col.identifier().ToString() == "0") return DoCreateString(System.IO.Path.GetFileName(frame.FileName), row); else if (col.identifier().ToString() == "1") if (frame.LineNumber >= 0) return DoCreateString(frame.LineNumber.ToString(), row); else return DoCreateString(string.Empty, row); else return DoCreateString(frame.Method.GetFullerName(), row); }
public NSObject outlineView_objectValueForTableColumn_byItem(NSOutlineView table, NSTableColumn col, TableItem item) { if (m_root == null) return NSString.Empty; if (col.identifier().ToString() == "1") return item == null ? m_root.Name : item.Name; else return item == null ? m_root.Bytes : item.Bytes; }
public NSObject outlineView_objectValueForTableColumn_byItem(NSOutlineView table, NSTableColumn col, VariableItem item) { NSObject value = null; try { if (m_item != null) { if (col.identifier().ToString() == "0") value = item == null ? m_item.AttributedName : item.AttributedName; else if (col.identifier().ToString() == "1") value = item == null ? m_item.AttributedValue : item.AttributedValue; else value = item == null ? m_item.AttributedType : item.AttributedType; } } catch (Exception e) { if (!Debugger.IsShuttingDown(e)) throw; } return value; }