Re: not a complete newbie question....
Re: not a complete newbie question....
- Subject: Re: not a complete newbie question....
- From: Scott Anguish <email@hidden>
- Date: Mon, 22 Sep 2003 01:02:13 -0400
On Sep 21, 2003, at 9:33 AM, Theodore Petrosky wrote:
So if I were to draw a conclusion, the decision to
access the cell rather than the 'textField' directly,
would be based on whether there were methods available
to the cell that were not available to the textField
instance. If I need the 'extra' methods I need to
access the cell.
Yes, but there are cases where you might need to fiddle with cell's
directly.. For example NSForm, or when using them in an NSMatrix,
NSBrowser, NSTableView or NSOutlineView.
Okay, so I need to read the *Cell methods to see if
there is a method that would help my program. If yes,
then access the cell.
It's rare that that you'd need to do that. There are cases though,
and I think the reference doc calls some of them out.
Seems simple. But then for me it begs the question,
"Why design the interface to Cocoa like that? Why not
just put the methods in the control instance? What is
gained by segregating those methods?"
Controls are not as lightweight, cells are reused as the content of
other components (the 4 listed above as some examples...
BTW, Scott... I love your book. Are those tube worms
on the front cover?
Beats me. According to the inside cover they are Giant Anemone. I've
never had tube worms, but I hear they are painful.
Scott
_______________________________________________
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.