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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:12:37+00:00 2026-05-20T14:12:37+00:00

I have yet another pesky warning I would like gone. Basically, I have an

  • 0

I have yet another pesky warning I would like gone. Basically, I have an int declared like this: @property (nonatomic, assign) int *myInt; and set like this: myInt = 0;. It is also synthesized in the implementation file. I am getting a warning on the line where I set the int’s value and it says Incompatible intiger to pointer conversion assigning to 'int *' from 'int'. What should I do to fix this?

  • 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-20T14:12:37+00:00Added an answer on May 20, 2026 at 2:12 pm

    There’s a big hint in the error message!

    In C and Objective C, an int is a primitive data type. You’ve written int *, which means “a pointer to an int”, whereas it looks like you just wanted an int.

    So change your property to this:

    @property (nonatomic, assign) int myInt;
    

    For more info, google “C pointers” and you’ll find information like this: http://pw1.netcom.com/~tjensen/ptr/pointers.htm

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

Sidebar

Related Questions

Yet another one of my P/Invoke questions! I have this C function: int _ei_x_new(ei_x_buff*
I have yet another weird annoying thing going on with Zend. Basically, I have
Sorry to be a nuisance, but I have yet ANOTHER question. How would I
Yet another Lucene.net question by an extreme newbie to it. This time, I have
Here is yet another problem which I would like some explanation on. On line
I have a string which looks like: some token,another token,yet another token,Necessary Token,KNOWN TOKEN,next
After getting a helpful answer here , I have run into yet another problem:
I've been thinking about this problem for a while and have yet to come
Okay this may be a simple question but I have yet to come with
I have (yet another) powershell query. I have an array in powershell which i

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.