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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:58:02+00:00 2026-05-23T10:58:02+00:00

Objective-C, xCode for iOS In a class, I want to assign a singleton integer’s

  • 0

Objective-C, xCode for iOS

In a class, I want to assign a singleton integer’s value. Right now I have:

[ExGlobal sharedMySingleton].tetraCountEx = tetraCount;

I’ve got this warning before, and have been able to resolve it, but this seems like I would have to do something different by letting the compiler know that tetraCountEx is an integer. I just don’t know how.

  • 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-23T10:58:03+00:00Added an answer on May 23, 2026 at 10:58 am

    That error is a result of trying to store a number as a pointer. With out you posting any code as to how tetraCountEX is declared I can only guess what your problem is.

    On reason may be that tetraCountEx is defined as an NSNumber and if that is the case use

    [ExGlobal sharedMySingleton].tetraCountEx = [NSNumber numberWithInt:tetraCount];
    //or numberWithInteger: or the appropriate type
    

    And the other reason may be accidentally declaring tetraCountEx as a pointer

    //Remove the * if this is the case
    @property(nonatomic, assign) int *tetraCountEx;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In XCode and objective c, if I want to use a UIGlassButton in interface
This is Objective-C, in Xcode for the iPhone. I have a method in main.m:
I have an xcode Objective-C iPhone static library project. When I build it in
Apple doesn't want anyone to create iPhone apps outside of the Xcode/Objective-C environment. How
I'm writing Objective-C++ in Xcode for iOS. My project is mostly C++ classes and
I am new to Mac, iOS, Xcode and objective-c. I am very familiar with
I'm a newbie to Xcode, Objective-C and iOS programming (fully comfortable in R however,
If I create my own custom Application for iOS (XCode/Objective-C), can I make it
fairly new to Objective-C and iOS development (coming from PHP) and I have a
Objective c | xcode | iphone question Im building a model(data) class for a

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.