• 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: keyUp falling through to window when sheet dismissed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: keyUp falling through to window when sheet dismissed
      • From: Ken Worley <email@hidden>
References: 
 >keyUp falling through to window when sheet dismissed (From: Ken Worley <email@hidden>)
 >Re: keyUp falling through to window when sheet dismissed (From: "Kyle Sluder" <email@hidden>)
 >Re: keyUp falling through to window when sheet dismissed (From: Ken Worley <email@hidden>)
 >Re: keyUp falling through to window when sheet dismissed (From: Ken Worley <email@hidden>)
 >Re: keyUp falling through to window when sheet dismissed (From: "Kyle Sluder" <email@hidden>)

  • Prev by Date: Re: How to prompt for admin rights in Cocoa-Python?
  • Next by Date: When does Cocoa fall apart? (Run loops)
  • Previous by thread: Re: keyUp falling through to window when sheet dismissed
  • Next by thread: Re: keyUp falling through to window when sheet dismissed
  • Index(es):
    • Date
    • Thread