Re: My Newbie Learning Question
Re: My Newbie Learning Question
- Subject: Re: My Newbie Learning Question
- From: Scott Anguish <email@hidden>
- Date: Wed, 6 Jun 2001 01:44:12 -0400
On Tuesday, June 5, 2001, at 11:20 PM, Michael Rogers wrote:
> As for remembering it, the Cocoa frameworks are pretty
self-consistent, so my first guess as to the name of a particular
method is usually right.
I didn't say that.. John Randolph did
I agree. But I do have one complaint (and if the naming gods can
explain their rationale and/or provide a useful mnemonic, this humble
servant would be most appreciative :-) If I want to put an NSString in
an NSTextField, it looks like I need to use setStringValue, but if I
want to put it in an NSTextView, I need to use setString. Why didn't
they just choose one or the other?
The NSTextField doesn't retain your string, where as the other
does.. (I don't know.. total guess there)