• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
stringValue & setStringValue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: stringValue & setStringValue
      • From: David Dunham <email@hidden>
    • Re: stringValue & setStringValue
      • From: ANE <email@hidden>
  • Prev by Date: Re: BOOL type deprecated in 64-bit?
  • Next by Date: Re: stringValue & setStringValue
  • Previous by thread: Suddenly lost connection to images
  • Next by thread: Re: stringValue & setStringValue
  • Index(es):
    • Date
    • Thread