Signal 10 and 11, keep popping up when i try and compare 2 NSStrings?
Signal 10 and 11, keep popping up when i try and compare 2 NSStrings?
- Subject: Signal 10 and 11, keep popping up when i try and compare 2 NSStrings?
- From: Tom Hancocks <email@hidden>
- Date: Tue, 5 Apr 2005 17:26:49 +0100
Sorry for the long subject line, but i couldn't think of how else to put it.
Anyways, i'm writing a program, which as i have said before am porting from REALbasic to Cocoa and i have run straight in to a brick wall here, with out warning, and now i keep getting Signal 10 and 11 being returned with in 3 seconds of loading my app. I have traced the problem to the root of its cause, but the only i have found of getting rid of the problem is to completely remove the thing that causes it. The problem is caused by simply comparing 2 NSString Objects.
Here are the declares of the NSString's in the header file:
NSString * cLastTrack;
NSString * cTrackTitle;
And here's the code where the error is being caused:
- (void)poll
{
iTunesOpen = [self isiTunesOpen];
if (!iTunesOpen) return;
playerState = [self PlayerState];
[self Volume];
if (playerState == 0) return;
[self TrackTitle];
if (![cTrackTitle isEqualToString:cLastTrack]) { // <<-- This line here is causing it
[self TrackArtist];
//[cLastTrack release];
cLastTrack = cTrackTitle;
}
}
Sorry if my code is a little messy, but I am still fairly new to Cocoa.
Tom Hancocks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden