Created
July 16, 2010 02:51
-
-
Save basuke/477858 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSRange range; | |
NSString *str = @""; | |
if (type == PostTweetTypePublicRepyType) { | |
str = @"Reply"; | |
range = NSMakeRange([str length], 0); | |
} else if (type == PostTweetTypeRetweetType) { | |
str = @"Retweeted"; | |
range = NSMakeRange(0, 0); | |
} if (type == PostTweetTypePublicRepyToUserType) { | |
str = @"PublicReply"; | |
range = NSMakeRange([str length], 0); | |
} else { | |
range = NSMakeRange(0, 0); | |
} | |
[mergedState setObject:str forKey:@"text"]; | |
[mergedState setObject:NSStringFromRange(range) forKey:@"range"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment