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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:33:43+00:00 2026-05-26T05:33:43+00:00

Good evening all, I’m trying to code a menu, but I keep getting Thread

  • 0

Good evening all,

I’m trying to code a menu, but I keep getting

Thread 1: Program received signal: “SIGABRT”.

My code is minimal at the moment, just trying to get it to work!

@implementation Menu

+(id)scene{
    CCScene *scene = [CCScene node];
    CCLayer *layer = [Menu node];
    [scene addChild:layer];
    return scene;
}

-(id)init{
    if((self = [super init])){
        CCLabelTTF *playLabel = [CCLabelTTF labelWithString:@"Play" fontName:@"Marker Felt" fontSize:40];
        CCMenuItemLabel *play = [CCMenuItemLabel itemWithLabel:playLabel target:self selector:@selector(doPlay:)]; //This is where SIGABRT happens//

        menu = [CCMenu menuWithItems:play, nil];
        [self addChild:menu];
    }
    return self;
}

-(void)doPlay{
    CCLOG(@"doPLay");
}
@end

Any help would be greatly appreciated 🙂
There seems to be quite little on coding menus without images.

  • 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-26T05:33:43+00:00Added an answer on May 26, 2026 at 5:33 am

    First order of business:

    1. Go to Build Settings
    2. Locate the compiler warning flag “Undeclared Selector”
    3. Set it to YES

    This will catch a lot of similar errors, and I really don’t understand why this setting isn’t turned on by default in all Xcode projects.

    Let me explain what your error is, it’s easy to overlook without that warning enabled. The selector passed to menu item is this:

    @selector(doPlay:)
    

    The selector that’s implemented is this:

    -(void) doPlay
    {
    }
    

    They don’t match! The menu item is expecting a selector that takes one parameter, as denoted by the : (colon). Change selector to this:

    @selector(doPlay)
    

    You’ll be fine. Next time, the compiler will warn you about that mishap.

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

Sidebar

Related Questions

Good evening all, I'm trying to write a method that creates and returns a
Good evening all, I'm trying to implement jquery table sorter, all seems fine and
Good evening, people! I'm trying to solve a rather simple problem, but.. well, it
good evening fellow code bashers: i know it should be simple, but i'm tired
Good evening all, I've been working on an MD5 tool in C# that takes
Good evening, I am working on a program where some application config info is
Good Evening All, I've created the following stored procedure: CREATE PROCEDURE AddQuote -- Add
Good Evening folks. This is my code: static private function removeAccentedLetters($input){ for ($i =
Good Evening All, A client has asked that I develop a web application as
Good Evening, I'm using Drupal 6, CCK Module, and the Link Field Type. All

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.