Revision: 3768
http://skim-app.svn.sourceforge.net/skim-app/?rev=3768&view=rev
Author: hofman
Date: 2008-04-18 17:33:50 -0700 (Fri, 18 Apr 2008)
Log Message:
-----------
Add title to accessibility attributes of note type cell rather than change the
role and the value.
Modified Paths:
--------------
trunk/SKAnnotationTypeImageCell.m
Modified: trunk/SKAnnotationTypeImageCell.m
===================================================================
--- trunk/SKAnnotationTypeImageCell.m 2008-04-18 23:42:49 UTC (rev 3767)
+++ trunk/SKAnnotationTypeImageCell.m 2008-04-19 00:33:50 UTC (rev 3768)
@@ -134,12 +134,12 @@
[super drawWithFrame:cellFrame inView:controlView];
}
+- (NSArray *)accessibilityAttributeNames {
+ return [[super accessibilityAttributeNames]
arrayByAddingObject:NSAccessibilityTitleAttribute];
+}
+
- (id)accessibilityAttributeValue:(NSString *)attribute {
- if ([attribute isEqualToString:NSAccessibilityRoleAttribute]) {
- return NSAccessibilityTextFieldRole;
- } else if ([attribute
isEqualToString:NSAccessibilityRoleDescriptionAttribute]) {
- return NSAccessibilityRoleDescription(NSAccessibilityTextFieldRole,
nil);
- } else if ([attribute isEqualToString:NSAccessibilityValueAttribute]) {
+ if ([attribute isEqualToString:NSAccessibilityTitleAttribute]) {
return [type typeName];
} else {
return [super accessibilityAttributeValue:attribute];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit