Re: keyUp falling through to window when sheet dismissed
Re: keyUp falling through to window when sheet dismissed
- Subject: Re: keyUp falling through to window when sheet dismissed
- From: Ken Worley <email@hidden>
- Date: Tue, 21 Oct 2008 16:17:07 -0600
On Oct 21, 2008, at 4:03 PM, Kyle Sluder wrote:
On Tue, Oct 21, 2008 at 5:35 PM, Ken Worley
<email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden