Hey guys,
I'm an extremely novice programmer and have run into an issue. I've been looking around for a while looking for a solution, but my code seems sound.
Basically I'm trying to grab the text from an NSTextField and make it into a string. I have used:
NSString *_mystring = [_mytextfield stringValue];
I also have:
@property (nonatomic, retain) NSString *mystring;
in the .h
I know the code works because I set a log to show the _mystring value after a button click, and nothing shows up even after typing in the textfield. I have found that if I change the name of the textfield within the .xib file the name shown in the log as the string value.
I wanted the string value to be anything typed into the textfield.
Any insight?
I'm an extremely novice programmer and have run into an issue. I've been looking around for a while looking for a solution, but my code seems sound.
Basically I'm trying to grab the text from an NSTextField and make it into a string. I have used:
NSString *_mystring = [_mytextfield stringValue];
I also have:
@property (nonatomic, retain) NSString *mystring;
in the .h
I know the code works because I set a log to show the _mystring value after a button click, and nothing shows up even after typing in the textfield. I have found that if I change the name of the textfield within the .xib file the name shown in the log as the string value.
I wanted the string value to be anything typed into the textfield.
Any insight?