• 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
NSView -nextKeyView and -previousKeyView only working once
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSView -nextKeyView and -previousKeyView only working once


  • Subject: NSView -nextKeyView and -previousKeyView only working once
  • From: Michael Watson <email@hidden>
  • Date: Fri, 16 Feb 2007 12:04:22 -0500

I have a window whose content view contains a set of buttons. Calling this makes the first button the first responder:

[myWindow makeFirstResponder:[[myWindow contentView] nextKeyView]];

However, subsequent repeats result in the same button being made first responder. I compared addresses to see what -nextKeyView was returning, and sure enough, it would only ever return the same object. -previousKeyView exhibited the same behaviour.

Clearly, I'm doing something wrong in my attempts to traverse the buttons with -nextKeyView. What should I be doing instead?


-- m-s _______________________________________________

Cocoa-dev mailing list (email@hidden)

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: NSView -nextKeyView and -previousKeyView only working once
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: NSObjectController and Core Data
  • Next by Date: Restoring Temporary Menu Title Changes
  • Previous by thread: Re: XML to NSDictionary
  • Next by thread: Re: NSView -nextKeyView and -previousKeyView only working once
  • Index(es):
    • Date
    • Thread