Re: kAXTitleAttribute
Re: kAXTitleAttribute
- Subject: Re: kAXTitleAttribute
- From: Mike Engber <email@hidden>
- Date: Mon, 19 Jan 2004 16:36:14 -0800
When I obtain a window title using AXUIElementCopyAttributeValue, in
OS 10.3 I get the window title, but in OS 10.2 I get the title
followed by a hyphen and then the window's file path. Is that the
expected results? The code I use is below.
This is a bug that was fixed in 10.3. The results you get in 10.3, just
the visible title string, are correct.
If you're curious for more details: This is purely a Cocoa issue. It
turns out that the title method on NSWindows doesn't always return the
title. Sometimes the filename is mixed in there as well. This behavior
wasn't documented before, but it looks like it is now:
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSWindow.html#//apple_ref/doc/uid/
20000013/title
If you need the path - use the AXDocument attribute which should work
in both 10.2 and 10.3.
-ME
_______________________________________________
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.