Plugins/Twitter Plugin/AITwitterService.m
changeset 2632 4e544bf1b994
parent 1134 ca29b36c1d4c
     1.1 --- a/Plugins/Twitter Plugin/AITwitterService.m	Tue Mar 17 18:27:07 2009 +0000
     1.2 +++ b/Plugins/Twitter Plugin/AITwitterService.m	Sat Oct 17 17:35:57 2009 -0400
     1.3 @@ -107,5 +107,21 @@
     1.4  	}
     1.5  }
     1.6  
     1.7 +/*!
     1.8 + * @brief Path for default icon
     1.9 + *
    1.10 + * For use in message views, this is the path to a default icon as described above.
    1.11 + *
    1.12 + * @param iconType The AIServiceIconType of the icon to return.
    1.13 + * @return The path to the image, otherwise nil.
    1.14 + */
    1.15 +- (NSString *)pathForDefaultServiceIconOfType:(AIServiceIconType)iconType
    1.16 +{
    1.17 +	if ((iconType == AIServiceIconSmall) || (iconType == AIServiceIconList)) {
    1.18 +		return [[NSBundle bundleForClass:[self class]] pathForImageResource:@"twitter-small"];
    1.19 +	} else {
    1.20 +		return [[NSBundle bundleForClass:[self class]] pathForImageResource:@"twitter"];		
    1.21 +	}
    1.22 +}
    1.23  
    1.24  @end