Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3850838
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T17:04:16+00:00 2026-05-19T17:04:16+00:00

I have a NSTextView where i put the delegate to my file owner. My

  • 0

I have a NSTextView where i put the delegate to my file owner. My file owner is then assosiated with a class where i do different stuff in the view.

To my understanding it should now be possible to catch events from the NSTextView inside my class (because i have set its delegate to file owner), but it does not seem to work, why is that?

I have implemented this function in my class:

- (BOOL)control: (NSControl *)control textView:(NSTextView *)textView doCommandBySelector: (SEL)commandSelector {

    NSLog(@"i was fired!");

    return YES;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T17:04:17+00:00Added an answer on May 19, 2026 at 5:04 pm

    according to http://developer.apple.com/library/mac/#documentation/cocoa/Reference/NSTextViewDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intf/NSTextViewDelegate

    the method signature looks like:

    - (BOOL)textView:(NSTextView *)aTextView doCommandBySelector:(SEL)aSelector
    

    give that a try instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my view i have ImageView.If i click ,it should open nextview. Please help
I have a class which has it's delegate: @protocol SNIRCControllerDelegate - (void) serverTalked:(id)data; @end
I have an NSTextView backed by a text system I put together myself, along
I have a NSTextView subclass. It displays normal text (which should wrap, ideally around
I have an NSTextView inside an NSScrollView. The scroll view has the auto resize
I'm working with a NSTextView and have a delegate set for its -textStorage property.
I have a view-based single-column NSTableView. Inside my NSTableCellView subclass I have an NSTextView
I have an NStextView that loads a description from a JSON source. The NSTextView
I have a NSTextView , which may contains rich text or rich text with
I have an NSTextView with text & images in it, which is supposed to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.