• 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: How to control "focus" programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to control "focus" programmatically


  • Subject: Re: How to control "focus" programmatically
  • From: Andrei Tchijov <email@hidden>
  • Date: Thu, 25 Aug 2005 07:24:03 -0400

Hi James,
Are you saying that in case of "standard" subclasses of NSView ( NSComboBox in my case ) that statement below should work?
Thanks,
Andrei


On Aug 25, 2005, at 01:52, James Chen wrote:

Hi,
What is the Class of X?
for example, if it's a custom subclass of NSView
you might take a look the document about this method, - (BOOL) acceptsFirstResponder.
Override and return YES.
HTH,
James


On Aug 25, 2005, at 12:53 PM, Andrei Tchijov wrote:


What is a correct way to control "focus"? After reading some DOCs, I was under impression that following should move focus to control X

[[ X window ] makeFirstResponder: X ];

It does not.  What am I doing wrong?

Thanks,
    Andrei Tchijov

_______________________________________________
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





_______________________________________________ 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
References: 
 >How to control "focus" programmatically (From: Andrei Tchijov <email@hidden>)
 >Re: How to control "focus" programmatically (From: James Chen <email@hidden>)

  • Prev by Date: Re: Change Budle Identifier, then lost defaults
  • Next by Date: Load a WebView with contents of NSString
  • Previous by thread: Re: How to control "focus" programmatically
  • Next by thread: (SORRY & IGNORE) Re: How to control "focus" programmatically
  • Index(es):
    • Date
    • Thread