Re: UIAccessibilityContainer Question
Re: UIAccessibilityContainer Question
- Subject: Re: UIAccessibilityContainer Question
- From: Jake Carter <email@hidden>
- Date: Wed, 30 May 2012 15:15:54 -0700
Yeah, the UIAccessibilityElement stuff makes sense to me, but the UIAccessibilityContainment stuff seems like it needs to be on a UIView (or something in the view hierarchy) so having the category on NSObject is just a little confusing. That's all.
Jake
On May 30, 2012, at 3:13 PM, Doug Russell wrote:
> They're on NSObject so you can do things like set an accessibilityLabel on a UIImage that's going into a UISegmentedControl
>
> On May 30, 2012, at 3:12 PM, Jake Carter wrote:
>
>> Yeah, this is the conclusion I was coming to also. Seems odd that the methods are on NSObject instead of something like UIView or UIResponder. (Maybe just to have one place for both Cocoa as well as CocoaTouch...?)
>>
>> I think I'll try the delegate passthrough idea.
>>
>> Thanks,
>>
>> Jake
>>
>> On May 30, 2012, at 2:58 PM, Doug Russell wrote:
>>
>>> The view subclass would be the place to implement them.
>>>
>>> An option, if you're going to setup a delegate anyway, is to forward
>>> them through the delegate to your view controller.
>>>
>>> I do that a lot when working with -accessibilityScroll.
>>>
>>> Sent from my Pocket Internet Machine
>>>
>>> On May 30, 2012, at 2:50 PM, Jake Carter <email@hidden> wrote:
>>>
>>>> Hello everyone,
>>>>
>>>> I'm trying to rework some things in some code I'm working on and need to provide my own UIAccessibilityElements via the UIAccessibilityContainer category. I'm trying to understand where we need to implement these methods. The UIAccessibilityContainer category methods are on NSObject which would lead me to believe that they would be called for any object (I was hoping to put them in a view controller where I had access to both my views and model objects) but this doesn't seem to be true. It seems that they are only called on objects in the view hierarchy. It seems like I need to put them in my subclass for UIView and I guess setup some sort of delegation where my view subclass can call out to the view controller to access the model objects to create the UIAccessibilityElements from. Does this seem like a decent workaround or am I missing something?
>>>>
>>>> Thanks,
>>>>
>>>> Jake
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>
_______________________________________________
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