• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Text View Scroll
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Text View Scroll


  • Subject: Text View Scroll
  • From: AIS-VI - Ben Vegiard <email@hidden>
  • Date: Tue, 10 Apr 2012 22:48:29 -0500

Hi All,

I am trying to implement a text view that allows the user to flick up/down to achieve custom behavior while VO is on.  According to the docs I have seen, I should be able to do this with the code below.  However, the only NSLog statement that fires is the "Became Focused".  If I perform a flick up/down while the text view has focus, the default VO action of moving forward/back by a word (or whatever the rotor is set to) is executed instead of my override code.

Can anyone offer suggestions of where I am going wrong here?

This is my first post to this group, so if you need anything in addition to this info, just let me know!



#import "VBTextView.h"

@implementation VBTextView

- (void)accessibilityIncrement 
{
    NSLog(@"In Accessibility code");
}


- (void)accessibilityDecrement 
{
    NSLog(@"In Accessibility code");
}


-(BOOL)accessibilityScroll:(UIAccessibilityScrollDirection)direction 
{
    NSLog(@"Scrolling");
    
    return true;
}

- (void)accessibilityElementDidBecomeFocused
{
    NSLog(@"Became Focused");
}

- (UIAccessibilityTraits)accessibilityTraits 
{ 
    return [super accessibilityTraits] || UIAccessibilityTraitAdjustable; 
}


-(BOOL)isAccessibilityElement 
{ 
    return YES;
}

@end

 _______________________________________________
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

  • Follow-Ups:
    • Re: Text View Scroll
      • From: Chris Fleizach <email@hidden>
References: 
 >AXUIElementCopyElementAtPosition call crashes OpenOffice (From: Brian Krisler <email@hidden>)

  • Prev by Date: AXUIElementCopyElementAtPosition call crashes OpenOffice
  • Next by Date: Re: Text View Scroll
  • Previous by thread: AXUIElementCopyElementAtPosition call crashes OpenOffice
  • Next by thread: Re: Text View Scroll
  • Index(es):
    • Date
    • Thread