• 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
Re: My Newbie Learning Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)


References: 
 >Re: My Newbie Learning Question (From: Michael Rogers <email@hidden>)

  • Prev by Date: Re: int question
  • Next by Date: NSComboBox/DataSource problems
  • Previous by thread: Re: My Newbie Learning Question
  • Next by thread: Re: My Newbie Learning Question
  • Index(es):
    • Date
    • Thread