• 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
Tabbing to buttons in a procedural view.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tabbing to buttons in a procedural view.


  • Subject: Tabbing to buttons in a procedural view.
  • From: Joel Norvell <email@hidden>
  • Date: Thu, 5 Oct 2006 01:03:42 -0700 (PDT)

Dear Coco-dev People,

I've implemented a number of NSTextField items and NSButton items PROCEDURALLY
(without using IB) in a container view.  I successfully setup the
firstResponder and tried setting up the nextKeyView chain, but the buttons are
skipped when I tab sequentially through these items.

(I've tried using different "setButtonType" parameters including
NSToggleButton, NSSwitchButton and NSRadioButton.)

I've looked at the Cocoa-dev archive but didn't come up with anything concrete.
 (Perhaps I missed something.)

I'm guessing I need to subclass NSButton and/or NSButtonCell but I'm not sure
exactly which methods to override.  I've tried several permutations but feel
like I'm chasing my tail.

A recipe showing how to do this or a pointer to example code that does this
(procedurally) would really be appreciated!  (FWIW, I've already looked at
ClockControl.)

Sincere thanks.
Joel Norvell


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Tabbing to buttons in a procedural view.
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Resizing Etiquette for views?
  • Next by Date: Finding all deleted objects from Core Data
  • Previous by thread: Resizing Etiquette for views?
  • Next by thread: Re: Tabbing to buttons in a procedural view.
  • Index(es):
    • Date
    • Thread