NSTextField returning null when it should not
NSTextField returning null when it should not
- Subject: NSTextField returning null when it should not
- From: Brian Weitzner <email@hidden>
- Date: Fri, 11 Aug 2006 13:09:47 -0400
Hi all,
I have an action that is triggered when a button is clicked. It
takes the string in an NSTextField and formats it so it can be passed
to another method. A matrix of radio buttons is used to determine
what text field the string should be taken from. Here's the code:
else if([searchMatrix selectedTag] == 1){
NSLog(@"the input in the text field is: %@", [pdb stringValue]);
if([[pdb stringValue] length] != 0){
<format the string>
}
}
So when I look at the debugger console while my app is running and I
put something in the text field and click the button, it works as
intended... the first time. After the first time the button is
clicked, if I click it again, the console displays my log displays
"2006-08-11 12:05:39.960 ProtBuD[3988:117] the input in the text field
is: (null)" The input is clearly not null. Any ideas about why this
might happen? Thanks.
--
Brian Weitzner
_______________________________________________
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