• 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: Parents & children not consistent
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parents & children not consistent


  • Subject: Re: Parents & children not consistent
  • From: Michael Kamprath <email@hidden>
  • Date: Sun, 10 Nov 2002 17:21:16 -0800

on 11/9/02 5:57 AM, Bill Cheeseman at email@hidden wrote:

> I notice that the parent branch of a UIElement (its ancestors) can include
> UIElements that are omitted from the application's children branches (its
> descendants). In other words, if you walk backwards from a UIElement to its
> root by traversing its parents, you may encounter some UIElements that you
> won't see when you return along the same branch by traversing its children.

The similar case, yet subtlety different, of this I noticed involved
sub-menu items. The parent of of a menu item in a sub-menu is the sub-menu.
Makes sense. But the parent of the sub-menu that is identified as the parent
of a menu item in a sub-menu is NULL. Hence, if you have a reference to a
menu item that's in a sub-menu (for example, from an observer), you cannot
backwards transverse to its root. You have to get the menu item's owning
application, then transverse from the menu bar down looking for the original
menu item in order to discover its path to root.

Michael F. Kamprath
email@hidden

Keyboard Maestro - Conduct Your Mac Like a Pro!
Download a free copy today at: www.KeyboardMaestro.com
_______________________________________________
accessibility-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/accessibility-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Parents & children not consistent
      • From: Bill Cheeseman <email@hidden>
References: 
 >Parents & children not consistent (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Parents & children not consistent
  • Next by Date: Re: Parents & children not consistent
  • Previous by thread: Re: Parents & children not consistent
  • Next by thread: Re: Parents & children not consistent
  • Index(es):
    • Date
    • Thread