On May 14, 2013, at 6:19 PM, Shane Stanley wrote:

>> [button accessibilitySetValue:@"My Title" 
>> forAttribute:NSAccessibilityTitleAttribute];
> 
>> Discovered -accessibilitySetOverrideValue:forAttribute: but that has no 
>> effect. The title is still empty.
> 
> The docs for the latter say: "Ensure that you invoke this method on the 
> actual object that represents the user interface element. For example, in the 
> case of NSButton, use the underlyingNSButtonCell. The NSButton itself is 
> ignored by accessibility." That suggests it also applies to the former.

Excellent! (Silly me.)

With just that I can make a few things easier through scripting without having 
to dive into anything else.


Thanks,

--
Seth Willits

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to