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 6614297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:19:18+00:00 2026-05-25T20:19:18+00:00

This is a silly beginner question but… If I have a custom subclass of

  • 0

This is a silly beginner question but… If I have a custom subclass of NSTextView “SSTextView” that spawns from Interface Builder, how do I access the instance of my custom class that is actually in the interface from inside SSTextView.m? The overall goal, I guess, is to be able to call an instance method in SSTextView.m from another method in the file. I know that [self aMethod] only works for class methods.

Now, I know I can do this from another class’s implementation by using IBOutlet SSTextView *myTextView; and making the connections in Interface Builder, but it seems like an odd organizational paradigm that I wouldn’t be able to put the methods that deal with my user interface text view in its own implementation.

Thanks in advance.

  • 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-25T20:19:19+00:00Added an answer on May 25, 2026 at 8:19 pm

    You’ve got this part backwards:

    I know that [self aMethod] only works for class methods.

    [self aMethod] is how you invoke an instance method on the current object.

    [MyClass aMethod] is how you invoke a class method.

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

Sidebar

Related Questions

This might be a silly question, but I'm a beginner in C#, so please
Okay, this might be a very silly beginner question, but: I've got an ClassA,
this a silly question no doubt but I am a beginner and could not
This is a rather broad question, but I'm a beginner-intermediate programmer that has just
This might be a very silly / stupid question, but, my defence is that
Excuse me if this is a silly question but i'm a beginer here. I
Sorry for this silly question, but is there any way to restrict using directives
This is silly, but I haven't found this information. If you have names of
This is a silly question, but you can use this code to check if
This is a silly question but How do I add an App_Data folder 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.