// -------------------------------------------------------------------------------
        //	handleCommandSelectors
        //
        //	Handle all command selectors that we can handle here
        // -------------------------------------------------------------------------------
        private bool handleCommandSelectors(NSControl control, NSTextView textView, Selector commandSelector)
        {
            bool result = false;

            if (textView.RespondsToSelector(commandSelector))
            {
                commandHandling = true;
                textView.PerformSelector(commandSelector, null, -1);
                //commandHandling = false;
                result = true;
            }

            return(result);
        }
		// -------------------------------------------------------------------------------
		//	handleCommandSelectors
		//
		//	Handle all command selectors that we can handle here
		// -------------------------------------------------------------------------------		
		private bool handleCommandSelectors(NSControl control, NSTextView textView, Selector commandSelector)
		{
			
			bool result = false;
			
			if (textView.RespondsToSelector (commandSelector)){
				commandHandling = true;
				textView.PerformSelector (commandSelector,null,-1);
				//commandHandling = false;
				result = true;
			}
			
			return result;
			
		}
Example #3
0
 private bool KeywordsCommandSelector(NSControl control, NSTextView textView, Selector commandSelector)
 {
     if (textView.RespondsToSelector(commandSelector))
     {
         commandHandling = true;
         textView.PerformSelector(commandSelector, null, -1);
         return true;
     }
     return false;
 }