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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T15:48:43+00:00 2026-06-15T15:48:43+00:00

There is a problem, I just installed cocos2d for iPhone. The first problem was

  • 0

There is a problem, I just installed cocos2d for iPhone.
The first problem was that it wasn’t recognizing any header like CCDirectory.h for example.
So I turned on user search paths in the project, but this way I could just import the header and have an object pointer without getting any warning, but methods aren’t recognized.
It’s hard to explain, so see this code:

Header:

#import <UIKit/UIKit.h>
#import <CCMenuItem.h>
#import <cocos2d.h>

Inside applicationDidFinishLaunching:

CCMenuItem* item; // This does not give a warning, except for the "unused variable"
                  // But the class is recognized

[CCMenuItem setFontName: @""]; // Warning

The warning is:

Class method '+setFontName:' not found (return type default to 'id')

And it doesn’t recognize any other method, just NSObject’s methods.

  • 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-15T15:48:45+00:00Added an answer on June 15, 2026 at 3:48 pm

    Are you sure the methods you are calling exists in that class? CCMenuItem doesn’t contain a static method named setFontName. Try changing CCMenuItem to CCMenuItemFont.

    [CCMenuItemFont setFontName: @""];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there's a lot of posts with the same that problem. I just
UPDATE Turns out I'm just tired. There isn't any problem here sorry for wasting
Problem There are data gaps that need to be filled. Would like to avoid
Just installed the Silverligh 5 SDK RC. There is a problem using it inside
I've got m2eclipse plugin installed and there's no problem syncing compile time dependencies that
So what started as A problem with buttons, just means there is A problem
Hey guys, I'm working on a status-Updater. It works, there is just one problem,
I just upgrade to Ubuntu Karmic 9.10 and there is now emphaty. The problem
Is there any problem with my code ? std::vector<int[2]> weights; int weight[2] = {1,2};
is there any problem to install different oracle 11g versions. I mean if 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.