Exemple #1
0
        public Boss Create(string bossName)
        {
            var controller = new TextController(bossName);
            controller.autorelease();

            controller.Text = string.Empty;
            controller.Open();

            return controller.Boss;
        }
Exemple #2
0
		public void MakeWindowControllers(string bossName)
		{
			m_controller = new TextController(bossName);
			addWindowController(m_controller);
			m_controller.autorelease();
			
			DoResetURL(fileURL());
			m_controller.OnPathChanged();
			
			if (NSObject.IsNullOrNil(m_text))
			{
				m_controller.Text = string.Empty;		// m_text will be null if we're opening a new doc
			}
			else
			{
				m_controller.RichText = m_text;
				m_text.release();
				m_text = null;
			}
			m_controller.Open();
		}