stringValue & setStringValue
stringValue & setStringValue
- Subject: stringValue & setStringValue
- From: David Yamartino <email@hidden>
- Date: Mon, 16 Feb 2009 19:34:09 -1000
I'm on chapter 5 of Aaron Hillegass Cocoa 3rd edition and I'm trying to do the challenge page 90.
In Xcode, when I option double-click on
stringValue & setStringValue I get the following:
- (NSString *)stringValue
- (void)setStringValue:(NSString *)string
Question 1:
Why are these two methods of NSTextField class defined in different ways?
Question 2:
Can someone give me an example of how to implement stringValue?
I can implement setStringValue like this to change the text of field1 to the text in field2:
[field1 setStringValue:field2];
Question 3:
I know programmer-speak is much more efficient for you all than something that would explain my questions above: does anyone know of a good reference that would come down to my level?
Thanks so much for your help,
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden