On Oct 21, 2008, at 4:03 PM, Kyle Sluder wrote:

On Tue, Oct 21, 2008 at 5:35 PM, Ken Worley <[EMAIL PROTECTED]> wrote:
This, by the way, is a constant source of confusion for me in Cocoa. Why is a delegate method specific to NSTextView listed under NSControl which is the
parent class?

You seem to be misunderstanding a bit.  The field editor is an
instance of NSTextView (or a subclass).  Any control, however, may
make use of the field editor, not just NSTextField.  More information
about the relationship between text views, the field editor, and
controls can be found in the Text System Overview:
http://developer.apple.com/documentation/Cocoa/Conceptual/TextArchitecture/Concepts/TextFieldsAndViews.html

--Kyle Sluder


You're right. I was somewhat confused. After looking at this in more detail, it seemed to me that the correct thing to do would be to specify a delegate to the NSTextField control and implement the - control:textView:doCommandBySelector: method that you suggested.

When I do that, however, the method never gets called, so I'm still not quite getting things. Still assimilating info though.

Thanks,
Ken

--
Ken Worley
Software Engineer, Tiberius, Inc.



_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to