• 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: Sending a message to super's super (tab keyDown in NSTextView)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending a message to super's super (tab keyDown in NSTextView)


  • Subject: Re: Sending a message to super's super (tab keyDown in NSTextView)
  • From: "Michael Ash" <email@hidden>
  • Date: Thu, 21 Aug 2008 10:17:59 -0400

On Thu, Aug 21, 2008 at 4:22 AM, Jerry Krinock <email@hidden> wrote:
> When the 'tab' or 'backTab' key is pressed, NSTextView accepts it as a
> character to be typewritten.  But sometimes I want NSTextView to behave like
> an NSTextField, with 'tab' or 'backTab' selecting the next or previous key
> view.  So, in my NSTextView subclass, I over-ride -keyDown: and re-implement
> the next/previous view selection.
>
> It works, but, besides being redundant code, this re-implementation seems
> like an evil assumption of some other class' behavior by my subclass.  What
> I really want to say is: "Behave like your 'grandfather' class, NSView".
>  But there is no supersuper keyword.

First, the grandfather class is not NSView, it is NSText.

Second, what makes you think that NSView's keyDown: implementation
performs this sort of tab selection that you think it does?

Mike
_______________________________________________

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

References: 
 >Sending a message to super's super (tab keyDown in NSTextView) (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: !foo vs foo == nil
  • Next by Date: Source List groups shifted down in NSOutlineView
  • Previous by thread: Re: Sending a message to super's super (tab keyDown in NSTextView)
  • Next by thread: Re: Sending a message to super's super (tab keyDown in NSTextView)
  • Index(es):
    • Date
    • Thread