• 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
What is the correct way to select next key view?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

What is the correct way to select next key view?


  • Subject: What is the correct way to select next key view?
  • From: Esteban <email@hidden>
  • Date: Wed, 17 Apr 2002 21:48:20 -0700

Hi,
I e-mailed about this before, but apparently I didn't explain what I was trying to do correctly.

I have a sheet with several views, respectively these are: Subject (NSTextField), Message (NSTextView inside an NSScrollView, as created by Interface builder), Remind Me At/In radio buttons, hour (NSTextField), hour stepper (NSStepper), etc.

What I'm hoping to provide is the ability for the user to tab from the subject field into the message text view, and then tab again from the message text view into either the radio button view, or the hour field.

So far I have the code necessary to catch the tab key being pressed in the NSTextView. I accomplished this by subclassing NSTextView and intercepting at -keyDown.

In Interface Builder I have set things up so that each view's nextKeyView is set up identically to the way i have listed the views above. So Subject's nextKeyView is message, Message's nextKeyView is Remind Me At/In radio buttons, the radio buttons' nextKeyView is the hour field, etc.

I've tried [myNSPanel selectNextKeyView:nil], but that doesnt work at all, because the NSTextView keeps a blinking cursor, despite it not being focused. Same with [myNSPanel selectKeyViewFollowing:messageView];

Any ideas? Would test source code be helpful? Let me know and I'll write it.

Thank you,
-Esteban Uribe
_______________________________________________
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.

  • Prev by Date: NSTime controller
  • Next by Date: Re: Drawing to NSQuickDrawView
  • Previous by thread: Re: NSTime controller
  • Next by thread: Re: Drawing to NSQuickDrawView
  • Index(es):
    • Date
    • Thread