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

  • Home
  • SEARCH
  • 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 8201341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:46:44+00:00 2026-06-07T06:46:44+00:00

I have created a subclass of NSImageView- let’s call it MyView- and have added

  • 0

I have created a subclass of NSImageView- let’s call it MyView- and have added a member function to it – let’s call it “The Function”. I additionally created three model classes.

Then using Interface Builder, I placed three cells of MyView into my window, therefore at runtime there would be three object instances of it. What I need to do is have my model classes call “The Function” from the three MyView instances/cells at runtime. How would I do this?

For example:

Model Classes: Class A, Class B, Class C

At runtime I want:

  • Class A to call The Function from the first first cell/instance of MyView

  • Class B to call The Function from the first second cell/instance of MyView

  • Class C to call The Function from the first third cell/instance of MyView

Note the following:

  • TheFunction is a member function of MyView

  • I am creating an app for Mac OSX not iOS

  • I am using Xcode 3.2.6

  • 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-06-07T06:46:46+00:00Added an answer on June 7, 2026 at 6:46 am

    You are completely violating the concept of MVC (Model View Controller). By theoretically we should never call any method from a model to view or vice versa.

    You can create an outlet inside controller of your view and then a controller should be the one that delivers the data of view to the Model.

    So I assume you have ViewControllers? If yes then create your image view outlets inside your ViewController and then let your controller have the instance of the Model inside your ViewController, you then have instance of Model and View inside Controller and in that you can interchange data between those instance

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

Sidebar

Related Questions

I have created myView which is subclass of UIView and drawn a circle on
I have created a subclass of UIImageView and I am handling the touches for
I have created a subclass of UITableViewController that is used as the custom class
I have created a custom subclass of UITableViewCell. There, I allow the user to
I have created 3 classes as following Ext.mine.TextParent - Inherting from Textfield Ext.mine.child.TextChildA -
I have created a subclass of a generic list so that I could implement
I have created a Class (subclass of NSObject) which will hold all my SQLs/dbConnections
Here's the scenario - I have created a custom NSView subclass, and the implementation
I have created a subclass of QGLwidget and I was hoping that I could
I have created a custom UIButton (UIButton subclass) for my application. Within this button's

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.