I got error “SIGABRT” goal, I’m not white? Why. . . Please try to h * lp me

I was programming and I got the error “SIGABRT”… But I don’t know why

Please try to help me, I will be very happy :)

in this code is “SIGABRT”:

-(void)list
{
    NSLog(@"===List of songs===");
    for (Song *theSong in playlist)
    {   NSLog(@"Title:'%@'",theSong.title); //SIGABRT ERROR
        NSLog(@"Artist:'%@'",theSong.artist);
        NSLog(@"Album:'%@'",theSong.album);
        NSLog(@"-------NEXT SONG-------");}
}

and in my main.m I got that error after writing this:

    Playlists *searchRes;
    searchRes = [playlistNow lookup:@"In"];
    [searchRes list];

For lookup method code is this:

    -(Playlists *)lookup:(NSString *)theTitle
{
    Playlists *result = [[Playlists alloc]initWithName:@"results"];
    for (Song *theSong in playlist)
    {
        if([theSong.title rangeOfString:theTitle options:NSCaseInsensitiveSearch].location != NSNotFound)
        {
            [result addSong:theTitle];
        }
    }
    return result;
}
This entry was posted in Codes & Scripts and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>