Re: Voice Over Performance for Complex Custom View
Re: Voice Over Performance for Complex Custom View
- Subject: Re: Voice Over Performance for Complex Custom View
- From: Michael Ash <email@hidden>
- Date: Thu, 17 Sep 2009 18:07:15 -0400
On Sep 17, 2009, at 1:38 PM, Xiang Cao wrote:
My full code of that three functions:
- (NSUInteger)accessibilityArrayAttributeCount:(NSString *)attribute
{
if([attribute isEqualToString:NSAccessibilityChildrenAttribute])
{
if(mChildren) return [mChildren count]; else return 0;
}else 0;
}
Probably unrelated to your actual problem, but you might be interested
to know that this code is broken. It should say "else return 0;" at
the end. The way it is now, that else branch will result in no return
statement being executed, potentially causing junk to be returned to
the caller.
Your compiler should be able to catch this. Be sure to turn on all the
warnings you can tolerate and fix everything it tells you about.
Mike
_______________________________________________
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