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: Sun, 11 Jan 2009 13:34:13 -0800
Hi,
I am trying to enable accessibility in my app 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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden