Re: Deleting contents of NSTextView...
Re: Deleting contents of NSTextView...
- Subject: Re: Deleting contents of NSTextView...
- From: Sherm Pendley <email@hidden>
- Date: Sun, 30 Jun 2002 22:10:27 -0400
On Sunday, June 30, 2002, at 09:28 PM, Isaac Sherman wrote:
Because it doesn't actually inherit from NSControl.
Heh... I noticed that, about thirty seconds after I posted my question.
D'oh!
Still, it seems odd; one of the things that I find appealing about
Cocoa, compared to Swing, MFC, GTK, etc., is its self-consistency.
That's why it strikes me as odd that, while NSControl and NSCell (which
doesn't inherit from NSControl) have setStringValue: methods, the NSText
and NSString methods that serve the same purpose are called setString:
instead.
Now that I've thought about it more, I'm wondering if the methods really
do exactly the same thing. Do the different method names imply slightly
different operations? That is, does setStringValue: make a copy of the
string that's passed to it, and setString retain the passed string
instead?
sherm--
Never put off until tomorrow what you can do today. There might be a law
against it by that time.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.