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

The Archive Base Latest Questions

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

I have created a certain class to represent an object. My program has several

  • 0

I have created a certain class to represent an object. My program has several views and view controllers. I want the different view controllers to work with this object. However, when I try to synthesize the class members so that they can be used in the view controller, I get an error saying that there is no declaration of the property found in the interface, even after I have included the .h file. How can I synthesize members from another class in the various view controllers that will be working with them?

  • 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-16T17:38:00+00:00Added an answer on May 16, 2026 at 5:38 pm

    Without seeing your code or the specific compiler errors, it’s hard to say what might be going on.

    If you’re just setting up a simple model object, then you should be able to write something like this in Model.h:

    @interface Model : NSObject {}
    
    @property (nonatomic, retain) NSString *name;
    
    @end
    

    and in your Model.m file:

    @implementation Model
    
    @synthesize name;
    
    @end
    

    All you need to do at that point is #import "Model.h" into your other source files and then you can use the name property like so:

    Model *m = [[Model alloc] init];
    m.name = @"Bob";
    ...
    

    It sounds like the compiler is complaining about the lack of the @property declaration in your case.

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

Sidebar

Related Questions

I am working on Moodle 2.2.1 and have created dynamic.csv files using certain queries.
I create a menu with a javascript object and jquery. I have certain items
I have created an EDMX in visual studio 2010 SP1. It has been built
I have a class library that I have written in C#.net. I want to
I am not certain what I am doing wrong, but I have a class
I have created an entity data model from my database. however in certain areas
Here is what I want to do. I have a class that I have
I have created a class (ConflictingBooking) that contains fields for various information in regards
I have created a class, MonitoredCollection<T> , that basically encapsulates/mimics List but allows me
I have created buttons are programmatically and set the button tags. View Did Load:

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.