|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
On Jun 25, 2008, at 10:44 PM, Eric Lee wrote:Ok, Cocoa is case sensitive. What this means is that stringValue is not the same thing as StringValue.Okay, I've done this:
[labelField setstringValue:[textField StringValue]];
However, when I build it, and I type something in and then press the button,
the string doesn't show up on the labelField IBOutlet.
How can I resolve this?
All methods in Cocoa follow the naming convention of starting lower case and having each word after that uppercase
So basically, stringValue: and setStringValue: are the methods you need to use.
What Omar said.
Let me add one simple rule, though:
If the compiler generates a warning, you are doing it wrong.
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (email@hidden) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
|>Re: NSString help! (From: Omar Qazi <email@hidden>)|
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.