setting accessibility links for cocoa applications in IB
setting accessibility links for cocoa applications in IB
- Subject: setting accessibility links for cocoa applications in IB
- From: "Yi Qiang" <email@hidden>
- Date: Thu, 8 Jan 2009 19:54:20 -0800
Hi,
I am trying to enable accessibility in one of my features and need a bit of
help figuring out how to do it in IB. Specifically, I want to relate a label
and a text field, e.g "Server: <server address>".
The Accessibility Programming Guideline For Cocoa (url) states:
"To do this, you create an accessibility object to represent the static text
object. Then, in each accessibility object representing one of the titled
user interface elements (each of the address fields, in this example), you
add the NSAccessibilityTitleUIElementAttribute attribute. The value of this
attribute is the accessibility object representing the static text title.
Finally, in the static text title accessibility object, add the
NSAccessibilityServesAsTitleForUIElementsAttribute attribute. The value of
this attribute is an array of the accessibility objects for which this
static text object serves as title (in this example, the array comprises the
set of editable text fields)."
In the information tab in the inspector, there are two things that look of
interest to me. The "link" connection in particular looks relevant here.
There are two headings I am interested in: "Accessibility" and
"Accessibility Reference"
1. What is the difference between the two?
2. If I want to set a link between a label and a text field, do I link
the text field to the label, or vice a versa? An do I do it in
"Accessibility" or "Accessibility Reference"
3. Am I completely wrong about what the "link" reference is for?
Cheers,
Yi
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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