// Frameworks that are not part of the standard mcocoa wrappers can be called // dynamically (as in the commented out code below) or the generate tool can // be used to create wrapper classes for that framework. public void awakeFromNib() { m_tableView = this["tableView"].To<NSTableView>(); m_view = this["view"].To<QCView>(); NSString path = NSBundle.mainBundle().pathForResource_ofType(NSString.Create("Chart"), NSString.Create("qtz")); bool loaded = m_view.loadCompositionFromFile(path); if (!loaded) throw new System.IO.FileNotFoundException(string.Format("Couldn't load '{0:D}'", path)); DoAppendData("Palo Alto", 2); DoAppendData("Cupertino", 1); DoAppendData("Menlo Park", 4); DoAppendData("Mountain View", 8); DoAppendData("San Francisco", 7); DoAppendData("Los Altos", 3); m_tableView.reloadData(); DoUpdateChart(); }