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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:51:34+00:00 2026-05-21T05:51:34+00:00

I have an a property declared in .h as @property (nonatomic, assign) int timeSig_Numerator;

  • 0

I have an a property declared in .h as

@property (nonatomic, assign) int timeSig_Numerator;

and an instance variable declared in the .h as

int mTimeSig_Numerator;

in the .m I synthesize with

@synthesize timeSig_Numerator = mTimeSig_Numerator;

I have a C function declared before the synthesize and need to use mTimeSig_Numerator. what is the best way to make the instance variable visible to my C function without passing it in as a function argument?

  • 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-21T05:51:35+00:00Added an answer on May 21, 2026 at 5:51 am

    Since mTimeSig_Numerator is an instance variable, each instance of your class has its own mTimeSig_Numerator. As a C function is decoupled from any given class/class instance, how would it know from which instance it should obtain mTimeSig_Numerator?

    Your C function needs either an argument containing the value of mTimeSig_Numerator in a specific instance, or an argument pointing to the instance itself, or some other mechanism that tells the function which specific instance/instance variable it should use.

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

Sidebar

Related Questions

I have a variable declared like this: @property (nonatomic, retain) NSMutableArray *aInfo; At the
I have this retained property declared like this: @property (nonatomic, retain) NSMutableDictionary *codes; then
I have an NSString declared as @property (nonatomic,copy) NSString *text in a class. When
if i have an outlet variable which i've declared as a property @interface MyClass:UIViewController
I have a variable declared in the header file : @interface int _nPerfectSlides; and
I have a property declared in my .h file as @property (weak, nonatomic) UIPickerView
I have a property declared like this: @property (nonatomic, retain) NSMutableArray *pricingLevels; And I
I have a NSMutableArray property declared as (nonatomic, retain) called Categories. In dealloc, I
I have a mutable array property declared and synthesized: @property (nonatomic, strong) NSMutableArray *arrayOfTasks;
Using ARC, I have a declared property of the following form: @property (nonatomic, strong)

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.