Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-19-2010, 10:56 PM   #11 (permalink)
cye
14 Year Old App Developer
 
Join Date: Mar 2010
Location: Texas
Posts: 242
cye is on a distinguished road
Default reason given by debugger console

Quote:
Originally Posted by cye View Post
Code:
- (IBAction)toReviewPressed:(id)sender
{
	if (q == nil) {
		q = [[NSMutableArray alloc]init];
	} if (a == nil) {
       	a = [[NSMutableArray alloc]init];
	}

        objq = @"";
	obja = @"";
	
	[q addObject:objq];
	[a addObject:obja];
	
	
	i = 1;
}


- (IBAction)inputPressed:(id)sender
{	
	qText = [[NSString alloc] initWithFormat:qInput.text];
	aText = [[NSString alloc] initWithFormat:aInput.text];
	
	
	[[q objectAtIndex:i]setText:(NSString *) qText];
	[[a objectAtIndex:i]setText:(NSString *) aText];
	
	i++;
}
i have objq, obja, q, a, and i declared in the .h file

2010-03-19 22:55:15.299 FlashCards[3307:20b] *** -[NSCFString setText:]: unrecognized selector sent to instance 0x4030
2010-03-19 22:55:15.301 FlashCards[3307:20b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString setText:]: unrecognized selector sent to instance 0x4030'
2010-03-19 22:55:15.303 FlashCards[3307:20b] Stack: (
807902715,
2520190523,
808284155,
807854166,
807706786,
10641,
814709201,
815110321,
815119058,
815114270,
814813151,
814722763,
814748641,
839148405,
807687520,
807683624,
839142449,
839142646,
814752238
)
Current language: auto; currently objective-c
(gdb)
cye is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,548
Threads: 94,072
Posts: 402,699
Top Poster: BrianSlick (7,990)
Welcome to our newest member, mrtdmb
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:06 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.