• 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
Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!?


  • Subject: Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!?
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 20 Nov 2002 03:24:26 +0100

On Wednesday, Nov 20, 2002, at 02:33 Europe/Prague, Ondra Cada wrote:

> Well, searching docs I still can't find how to drive the "keyboard
> focus" programmatically... I've found that I can enquire which element
> is active using
>
> [NSApp accessibilitySetValue:[[view window] firstResponder]
> forAttribute:NSAccessibilityFocusedUIElementAttribute];
>
> but how to *set* the focused element? The
> NSAccessibilityFocusedUIElementAttribute is not settable -- I've tried
> :(

Well, seems that

[object accessibilitySetValue:[NSNumber numberWithInt:1]
forAttribute:NSAccessibilityFocusedAttribute];

works all right, *but* provided that the window is not borderless! It's
much worse -- in a borderless window even textfields don't work (aren't
editable)!

I need a borderless window to cover the entire screen though (and using
a borderless window was the reason it did not work for me): if anyone
can tell me how to solve this, I'd be quite grateful.

TIA,
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.

  • Follow-Ups:
    • Re: Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!?
      • From: Andreas Mayer <email@hidden>
    • Re: Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!?
      • From: Marco Binder <email@hidden>
References: 
 >Focused UI element (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: No launchable executable present?
  • Next by Date: Re: NSString and NSCopying Protocol
  • Previous by thread: Focused UI element
  • Next by thread: Re: Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!?
  • Index(es):
    • Date
    • Thread