• 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: return key and outline view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: return key and outline view


  • Subject: Re: return key and outline view
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 1 Aug 2003 21:07:57 -0700

On Friday, August 1, 2003, at 04:47 PM, Brent Gulanowski wrote:

Is there a way to change the behaviour of outline views wrt: the return key? The default behaviour is to proceed to the next cell down, but I just want to to accept the input and then highlight the current row. How can I do that?

Subclass NSOutlineView and override the -keyDown: method to watch for the Return key being pressed. If some key other than Return is pressed, then pass the event to -keyDown: in the superclass.

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/

"I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." - Bjarne Stroustrup
_______________________________________________
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.
References: 
 >return key and outline view (From: Brent Gulanowski <email@hidden>)

  • Prev by Date: Cocoa-Dev List Administrivia
  • Next by Date: Using Credits About Box
  • Previous by thread: return key and outline view
  • Next by thread: Re: return key and outline view
  • Index(es):
    • Date
    • Thread