Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AbhishekApple

macrumors member
Original poster
Aug 5, 2010
86
0
==> specifies breakpoint
NSString variable is not accepting value

Code:
-(IBAction)btnLoginGoClicked:(id)sender
{
		NSString *userid =txtUserId.text;  ==> value "abcd"
		NSString *pass = txtPassword.text; ==> value "yyy"	
		
		NSString *loginurl= [[NSString alloc] initWithFormat:@"http://abc.com/email=%@&password=%@" ,userid,pass];  
		
		==>NSString* loginurl <variable nil
	
		NSURL *url = [NSURL URLWithString:loginurl];
		ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
		[loginurl release];
		[request setDelegate:self];
		[request startAsynchronous];
}
if i keep only starting 2 lines then the value of text field are not accepted at all but their is no error and execution continues..
but when i print breakpoint in gdb it shows following error description
Printing description of loginurl:
A syntax error in expression, near `variable)'.
A syntax error in expression, near `variable)'.

Also, if i replace the following same error exists
Code:
Replace ==>

NSString *loginurl= [[NSString alloc] initWithFormat:@"http://abc.com/email=%@&password=%@" ,userid,pass];  
		
with ==>

NSString *loginurl=@"test";

Same code runs in other project
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.