adium 2502:88f26ed1ecfe: Backed out changeset 2a4ac0570326 (buil...
commits at adium.im
commits at adium.im
Sat Jun 13 19:53:23 UTC 2009
details: http://hg.adium.im/adium/rev/88f26ed1ecfe
revision: 2502:88f26ed1ecfe
author: David Smith <catfish.man at gmail.com>
date: Sat Jun 13 12:52:44 2009 -0700
Backed out changeset 2a4ac0570326 (build fix for some GCCs)
Subject: adium 2503:e9a00c46cd32: Merge backout
details: http://hg.adium.im/adium/rev/e9a00c46cd32
revision: 2503:e9a00c46cd32
author: David Smith <catfish.man at gmail.com>
date: Sat Jun 13 12:53:13 2009 -0700
Merge backout
diffs (430 lines):
diff -r 2a4ac0570326 -r e9a00c46cd32 Plugins/Bonjour/libezv/Private Classes/AWEzvXMLNode.h
--- a/Plugins/Bonjour/libezv/Private Classes/AWEzvXMLNode.h Fri Jun 12 17:57:30 2009 -0700
+++ b/Plugins/Bonjour/libezv/Private Classes/AWEzvXMLNode.h Sat Jun 13 12:53:13 2009 -0700
@@ -37,7 +37,7 @@
};
@interface AWEzvXMLNode : NSObject {
- NSString *name;
+ NSString *name;
int type;
NSMutableDictionary *attributes;
NSMutableArray *children;
@@ -45,12 +45,13 @@
}
- (id) initWithType:(int)type name:(NSString *)name;
- at property (readonly, nonatomic) int type;
- at property (readonly, nonatomic) NSArray *children;
- at property (readonly, nonatomic) NSDictionary *attributes;
- at property (readwrite, copy, nonatomic) NSString *name;
- at property (readonly, nonatomic) NSString *xmlString;
+- (int) type;
+- (NSArray *)children;
- (void) addChild:(AWEzvXMLNode *)node;
+- (NSDictionary *)attributes;
- (void) addAttribute:(NSString *)property withValue:(NSString *)value;
+- (NSString *)name;
+- (void) setName:(NSString *)name;
+- (NSString *)xmlString;
@end
diff -r 2a4ac0570326 -r e9a00c46cd32 Plugins/Bonjour/libezv/Private Classes/AWEzvXMLNode.m
--- a/Plugins/Bonjour/libezv/Private Classes/AWEzvXMLNode.m Fri Jun 12 17:57:30 2009 -0700
+++ b/Plugins/Bonjour/libezv/Private Classes/AWEzvXMLNode.m Sat Jun 13 12:53:13 2009 -0700
@@ -58,8 +58,9 @@
[super dealloc];
}
- at synthesize type, name;
-
+- (int) type {
+ return type;
+}
- (NSArray *)children {
return [[children copy] autorelease];
}
@@ -75,6 +76,17 @@
[attributes setObject:value forKey:property];
}
+- (NSString *)name {
+ return name;
+}
+
+- (void) setName:(NSString *)theName {
+ if (name != theName) {
+ [name release];
+ name = [theName retain];
+ }
+}
+
- (NSString *)xmlString {
NSMutableString *string;
NSString *key;
diff -r 2a4ac0570326 -r e9a00c46cd32 Plugins/Twitter Plugin/AITwitterAccount.m
--- a/Plugins/Twitter Plugin/AITwitterAccount.m Fri Jun 12 17:57:30 2009 -0700
+++ b/Plugins/Twitter Plugin/AITwitterAccount.m Sat Jun 13 12:53:13 2009 -0700
@@ -434,10 +434,8 @@
NSString *requestID;
if(inContentMessage.chat.isGroupChat) {
- NSInteger replyID = [[inContentMessage.chat valueForProperty:@"TweetInReplyToStatusID"] unsignedLongLongValue];
-
requestID = [twitterEngine sendUpdate:inContentMessage.encodedMessage
- inReplyTo:replyID];
+ inReplyTo:[inContentMessage.chat valueForProperty:@"TweetInReplyToStatusID"]];
if(requestID) {
[self setRequestType:AITwitterSendUpdate
@@ -447,7 +445,7 @@
inContentMessage.displayContent = NO;
- AILogWithSignature(@"%@ Sending update [in reply to %d]: %@", self, replyID, inContentMessage.encodedMessage);
+ AILogWithSignature(@"%@ Sending update [in reply to %@]: %@", self, [inContentMessage.chat valueForProperty:@"TweetInReplyToStatusID"], inContentMessage.encodedMessage);
}
} else {
@@ -1038,7 +1036,7 @@
}
NSString *requestID;
- NSUInteger lastID;
+ NSString *lastID;
// We haven't completed the timeline nor replies. This lets us know if we should display statuses.
followedTimelineCompleted = repliesCompleted = NO;
@@ -1056,8 +1054,8 @@
AILogWithSignature(@"%@ Periodic update fire", self);
// Pull direct messages
- lastID = [[self preferenceForKey:TWITTER_PREFERENCE_DM_LAST_ID
- group:TWITTER_PREFERENCE_GROUP_UPDATES] unsignedLongLongValue];
+ lastID = [self preferenceForKey:TWITTER_PREFERENCE_DM_LAST_ID
+ group:TWITTER_PREFERENCE_GROUP_UPDATES];
requestID = [twitterEngine getDirectMessagesSinceID:lastID startingAtPage:1];
@@ -1070,8 +1068,8 @@
}
// Pull followed timeline
- lastID = [[self preferenceForKey:TWITTER_PREFERENCE_TIMELINE_LAST_ID
- group:TWITTER_PREFERENCE_GROUP_UPDATES] unsignedLongLongValue];
+ lastID = [self preferenceForKey:TWITTER_PREFERENCE_TIMELINE_LAST_ID
+ group:TWITTER_PREFERENCE_GROUP_UPDATES];
requestID = [twitterEngine getFollowedTimelineFor:nil
sinceID:lastID
@@ -1087,8 +1085,8 @@
}
// Pull the replies feed
- lastID = [[self preferenceForKey:TWITTER_PREFERENCE_REPLIES_LAST_ID
- group:TWITTER_PREFERENCE_GROUP_UPDATES] unsignedLongLongValue];
+ lastID = [self preferenceForKey:TWITTER_PREFERENCE_REPLIES_LAST_ID
+ group:TWITTER_PREFERENCE_GROUP_UPDATES];
requestID = [twitterEngine getRepliesSinceID:lastID startingAtPage:1];
@@ -1194,7 +1192,7 @@
*/
- (void)toggleFavoriteTweet:(NSString *)tweetID
{
- NSString *requestID = [twitterEngine markUpdate:[tweetID unsignedLongLongValue] asFavorite:YES];
+ NSString *requestID = [twitterEngine markUpdate:tweetID asFavorite:YES];
if (requestID) {
[self setRequestType:AITwitterFavoriteYes
@@ -1216,7 +1214,7 @@
*/
- (void)destroyTweet:(NSString *)tweetID
{
- NSString *requestID = [twitterEngine deleteUpdate:[tweetID unsignedLongLongValue]];
+ NSString *requestID = [twitterEngine deleteUpdate:tweetID];
if(requestID) {
[self setRequestType:AITwitterDestroyStatus
@@ -1239,7 +1237,7 @@
- (void)destroyDirectMessage:(NSString *)messageID
forUser:(NSString *)userID
{
- NSString *requestID = [twitterEngine deleteDirectMessage:[messageID unsignedLongLongValue]];
+ NSString *requestID = [twitterEngine deleteDirectMessage:messageID];
AIListContact *contact = [self contactWithUID:userID];
if(requestID) {
@@ -1812,7 +1810,7 @@
BOOL addAsFavorite = ([self requestTypeForRequestID:identifier] == AITwitterFavoriteNo);
NSString *tweetID = [[self dictionaryForRequestID:identifier] objectForKey:@"tweetID"];
- NSString *requestID = [twitterEngine markUpdate:[tweetID unsignedLongLongValue]
+ NSString *requestID = [twitterEngine markUpdate:tweetID
asFavorite:addAsFavorite];
if (requestID) {
@@ -1929,7 +1927,7 @@
if ([self requestTypeForRequestID:identifier] == AITwitterUpdateFollowedTimeline) {
requestID = [twitterEngine getFollowedTimelineFor:nil
- sinceID:[lastID unsignedLongLongValue]
+ sinceID:lastID
startingAtPage:nextPage
count:TWITTER_UPDATE_TIMELINE_COUNT];
@@ -1948,7 +1946,7 @@
}
} else if ([self requestTypeForRequestID:identifier] == AITwitterUpdateReplies) {
- requestID = [twitterEngine getRepliesSinceID:[lastID unsignedLongLongValue] startingAtPage:nextPage];
+ requestID = [twitterEngine getRepliesSinceID:lastID startingAtPage:nextPage];
AILogWithSignature(@"%@ Pulling additional replies page %d", self, nextPage);
@@ -2102,17 +2100,17 @@
- (void)directMessagesReceived:(NSArray *)messages forRequest:(NSString *)identifier
{
if ([self requestTypeForRequestID:identifier] == AITwitterUpdateDirectMessage) {
- NSNumber *lastID = [self preferenceForKey:TWITTER_PREFERENCE_DM_LAST_ID
+ NSString *lastID = [self preferenceForKey:TWITTER_PREFERENCE_DM_LAST_ID
group:TWITTER_PREFERENCE_GROUP_UPDATES];
BOOL nextPageNecessary = (lastID && messages.count >= TWITTER_UPDATE_DM_COUNT);
// Store the largest tweet ID we find; this will be our "last ID" the next time we run.
- NSNumber *largestTweet = [[self dictionaryForRequestID:identifier] objectForKey:@"LargestTweet"];
+ NSString *largestTweet = [[self dictionaryForRequestID:identifier] objectForKey:@"LargestTweet"];
// The largest ID is first, compare.
if (messages.count) {
- NSNumber *tweetID = [[messages objectAtIndex:0] objectForKey:TWITTER_DM_ID];
+ NSString *tweetID = [[messages objectAtIndex:0] objectForKey:TWITTER_DM_ID];
if (!largestTweet || [largestTweet compare:tweetID] == NSOrderedAscending) {
largestTweet = tweetID;
}
@@ -2125,7 +2123,7 @@
if(nextPageNecessary) {
NSInteger nextPage = [[[self dictionaryForRequestID:identifier] objectForKey:@"Page"] intValue] + 1;
- NSString *requestID = [twitterEngine getDirectMessagesSinceID:[lastID unsignedLongLongValue]
+ NSString *requestID = [twitterEngine getDirectMessagesSinceID:lastID
startingAtPage:nextPage];
AILogWithSignature(@"%@ Pulling additional DM page %d", self, nextPage);
diff -r 2a4ac0570326 -r e9a00c46cd32 Plugins/Twitter Plugin/MGTwitterEngine/MGTwitterEngine.h
--- a/Plugins/Twitter Plugin/MGTwitterEngine/MGTwitterEngine.h Fri Jun 12 17:57:30 2009 -0700
+++ b/Plugins/Twitter Plugin/MGTwitterEngine/MGTwitterEngine.h Sat Jun 13 12:53:13 2009 -0700
@@ -92,22 +92,22 @@
// Retrieving updates
- (NSString *)getFollowedTimelineFor:(NSString *)username since:(NSDate *)date startingAtPage:(int)pageNum;
- (NSString *)getFollowedTimelineFor:(NSString *)username since:(NSDate *)date startingAtPage:(int)pageNum count:(int)count; // max 200
-- (NSString *)getFollowedTimelineFor:(NSString *)username sinceID:(unsigned long long)updateID startingAtPage:(int)pageNum count:(int)count; // max 200
+- (NSString *)getFollowedTimelineFor:(NSString *)username sinceID:(NSString *)updateID startingAtPage:(int)pageNum count:(int)count; // max 200
- (NSString *)getUserTimelineFor:(NSString *)username since:(NSDate *)date count:(int)numUpdates; // max 200
- (NSString *)getUserTimelineFor:(NSString *)username since:(NSDate *)date startingAtPage:(int)pageNum count:(int)numUpdates; // max 200
-- (NSString *)getUserTimelineFor:(NSString *)username sinceID:(unsigned long long)updateID startingAtPage:(int)pageNum count:(int)numUpdates; // max 200
+- (NSString *)getUserTimelineFor:(NSString *)username sinceID:(NSString *)updateID startingAtPage:(int)pageNum count:(int)numUpdates; // max 200
- (NSString *)getUserUpdatesArchiveStartingAtPage:(int)pageNum; // 80 per page
-- (NSString *)getPublicTimelineSinceID:(unsigned long long)updateID;
-- (NSString *)getRepliesSinceID:(unsigned long long)updateID startingAtPage:(int)pageNum;
+- (NSString *)getPublicTimelineSinceID:(NSString *)updateID;
+- (NSString *)getRepliesSinceID:(NSString *)updateID startingAtPage:(int)pageNum;
- (NSString *)getRepliesStartingAtPage:(int)pageNum; // sent TO this user
- (NSString *)getFavoriteUpdatesFor:(NSString *)username startingAtPage:(int)pageNum;
-- (NSString *)getUpdate:(unsigned long long)updateID;
+- (NSString *)getUpdate:(NSString *)updateID;
// Retrieving direct messages
- (NSString *)getDirectMessagesSince:(NSDate *)date startingAtPage:(int)pageNum; // sent TO this user
-- (NSString *)getDirectMessagesSinceID:(unsigned long long)updateID startingAtPage:(int)pageNum; // sent TO this user
+- (NSString *)getDirectMessagesSinceID:(NSString *)updateID startingAtPage:(int)pageNum; // sent TO this user
- (NSString *)getSentDirectMessagesSince:(NSDate *)date startingAtPage:(int)pageNum; // sent BY this user
-- (NSString *)getSentDirectMessagesSinceID:(unsigned long long)updateID startingAtPage:(int)pageNum; // sent BY this user
+- (NSString *)getSentDirectMessagesSinceID:(NSString *)updateID startingAtPage:(int)pageNum; // sent BY this user
// Retrieving user information
- (NSString *)getUserInformationFor:(NSString *)username;
@@ -125,13 +125,13 @@
// Sending and editing updates
- (NSString *)sendUpdate:(NSString *)status;
-- (NSString *)sendUpdate:(NSString *)status inReplyTo:(unsigned long long)updateID;
-- (NSString *)deleteUpdate:(unsigned long long)updateID; // this user must be the AUTHOR
-- (NSString *)markUpdate:(unsigned long long)updateID asFavorite:(BOOL)flag;
+- (NSString *)sendUpdate:(NSString *)status inReplyTo:(NSString *)updateID;
+- (NSString *)deleteUpdate:(NSString *)updateID; // this user must be the AUTHOR
+- (NSString *)markUpdate:(NSString *)updateID asFavorite:(BOOL)flag;
// Sending and editing direct messages
- (NSString *)sendDirectMessage:(NSString *)message to:(NSString *)username;
-- (NSString *)deleteDirectMessage:(unsigned long long)updateID; // this user must be the RECIPIENT
+- (NSString *)deleteDirectMessage:(NSString *)updateID; // this user must be the RECIPIENT
// Adium OAuth additions
@property (readwrite, nonatomic) BOOL useOAuth;
diff -r 2a4ac0570326 -r e9a00c46cd32 Plugins/Twitter Plugin/MGTwitterEngine/MGTwitterEngine.m
--- a/Plugins/Twitter Plugin/MGTwitterEngine/MGTwitterEngine.m Fri Jun 12 17:57:30 2009 -0700
+++ b/Plugins/Twitter Plugin/MGTwitterEngine/MGTwitterEngine.m Sat Jun 13 12:53:13 2009 -0700
@@ -958,13 +958,13 @@
}
-- (NSString *)getFollowedTimelineFor:(NSString *)username sinceID:(unsigned long long)updateID startingAtPage:(int)pageNum count:(int)count
+- (NSString *)getFollowedTimelineFor:(NSString *)username sinceID:(NSString *)updateID startingAtPage:(int)pageNum count:(int)count
{
NSString *path = @"statuses/friends_timeline.xml";
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0];
if (updateID > 0) {
- [params setObject:[NSString stringWithFormat:@"%qu", updateID] forKey:@"since_id"];
+ [params setObject:updateID forKey:@"since_id"];
}
if (pageNum > 0) {
[params setObject:[NSString stringWithFormat:@"%d", pageNum] forKey:@"page"];
@@ -1015,13 +1015,13 @@
}
-- (NSString *)getUserTimelineFor:(NSString *)username sinceID:(unsigned long long)updateID startingAtPage:(int)pageNum count:(int)numUpdates
+- (NSString *)getUserTimelineFor:(NSString *)username sinceID:(NSString *)updateID startingAtPage:(int)pageNum count:(int)numUpdates
{
NSString *path = @"statuses/user_timeline.xml";
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0];
if (updateID > 0) {
- [params setObject:[NSString stringWithFormat:@"%qu", updateID] forKey:@"since_id"];
+ [params setObject:updateID forKey:@"since_id"];
}
if (pageNum > 0) {
[params setObject:[NSString stringWithFormat:@"%d", pageNum] forKey:@"page"];
@@ -1054,13 +1054,13 @@
}
-- (NSString *)getPublicTimelineSinceID:(unsigned long long)updateID
+- (NSString *)getPublicTimelineSinceID:(NSString *)updateID
{
NSString *path = @"statuses/public_timeline.xml";
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0];
if (updateID > 0) {
- [params setObject:[NSString stringWithFormat:@"%qu", updateID] forKey:@"since_id"];
+ [params setObject:updateID forKey:@"since_id"];
}
return [self _sendRequestWithMethod:nil path:path queryParameters:params body:nil
@@ -1101,9 +1101,9 @@
}
-- (NSString *)getUpdate:(unsigned long long)updateID
+- (NSString *)getUpdate:(NSString *)updateID
{
- NSString *path = [NSString stringWithFormat:@"statuses/show/%qu.xml", updateID];
+ NSString *path = [NSString stringWithFormat:@"statuses/show/%@.xml", updateID];
return [self _sendRequestWithMethod:nil path:path queryParameters:nil body:nil
requestType:MGTwitterStatusesRequest
@@ -1132,13 +1132,13 @@
}
-- (NSString *)getDirectMessagesSinceID:(unsigned long long)updateID startingAtPage:(int)pageNum
+- (NSString *)getDirectMessagesSinceID:(NSString *)updateID startingAtPage:(int)pageNum
{
NSString *path = @"direct_messages.xml";
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0];
if (updateID > 0) {
- [params setObject:[NSString stringWithFormat:@"%qu", updateID] forKey:@"since_id"];
+ [params setObject:updateID forKey:@"since_id"];
}
if (pageNum > 0) {
[params setObject:[NSString stringWithFormat:@"%d", pageNum] forKey:@"page"];
@@ -1168,13 +1168,13 @@
}
-- (NSString *)getSentDirectMessagesSinceID:(unsigned long long)updateID startingAtPage:(int)pageNum
+- (NSString *)getSentDirectMessagesSinceID:(NSString *)updateID startingAtPage:(int)pageNum
{
NSString *path = @"direct_messages/sent.xml";
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0];
if (updateID > 0) {
- [params setObject:[NSString stringWithFormat:@"%qu", updateID] forKey:@"since_id"];
+ [params setObject:updateID forKey:@"since_id"];
}
if (pageNum > 0) {
[params setObject:[NSString stringWithFormat:@"%d", pageNum] forKey:@"page"];
@@ -1270,7 +1270,7 @@
}
-- (NSString *)sendUpdate:(NSString *)status inReplyTo:(unsigned long long)updateID
+- (NSString *)sendUpdate:(NSString *)status inReplyTo:(NSString *)updateID
{
if (!status) {
return nil;
@@ -1286,7 +1286,7 @@
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0];
[params setObject:trimmedText forKey:@"status"];
if (updateID > 0) {
- [params setObject:[NSString stringWithFormat:@"%qu", updateID] forKey:@"in_reply_to_status_id"];
+ [params setObject:updateID forKey:@"in_reply_to_status_id"];
}
NSString *body = [self _queryStringWithBase:nil parameters:params prefixed:NO];
@@ -1297,9 +1297,9 @@
}
-- (NSString *)deleteUpdate:(unsigned long long)updateID
+- (NSString *)deleteUpdate:(NSString *)updateID
{
- NSString *path = [NSString stringWithFormat:@"statuses/destroy/%qu.xml", updateID];
+ NSString *path = [NSString stringWithFormat:@"statuses/destroy/%@.xml", updateID];
return [self _sendRequestWithMethod:HTTP_POST_METHOD path:path queryParameters:nil body:nil
requestType:MGTwitterAccountRequest
@@ -1307,9 +1307,9 @@
}
-- (NSString *)markUpdate:(unsigned long long)updateID asFavorite:(BOOL)flag
+- (NSString *)markUpdate:(NSString *)updateID asFavorite:(BOOL)flag
{
- NSString *path = [NSString stringWithFormat:@"favorites/%@/%qu.xml",
+ NSString *path = [NSString stringWithFormat:@"favorites/%@/%@.xml",
(flag) ? @"create" : @"destroy" ,
updateID];
@@ -1347,9 +1347,9 @@
}
-- (NSString *)deleteDirectMessage:(unsigned long long)updateID
+- (NSString *)deleteDirectMessage:(NSString *)updateID
{
- NSString *path = [NSString stringWithFormat:@"direct_messages/destroy/%qu.xml", updateID];
+ NSString *path = [NSString stringWithFormat:@"direct_messages/destroy/%@.xml", updateID];
return [self _sendRequestWithMethod:HTTP_POST_METHOD path:path queryParameters:nil body:nil
requestType:MGTwitterAccountRequest
@@ -1373,13 +1373,13 @@
}
-- (NSString *)getRepliesSinceID:(unsigned long long)updateID startingAtPage:(int)pageNum
+- (NSString *)getRepliesSinceID:(NSString *)updateID startingAtPage:(int)pageNum
{
NSString *path = @"statuses/replies.xml";
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0];
if (updateID > 0) {
- [params setObject:[NSString stringWithFormat:@"%qu", updateID] forKey:@"since_id"];
+ [params setObject:updateID forKey:@"since_id"];
}
if (pageNum > 0) {
[params setObject:[NSString stringWithFormat:@"%d", pageNum] forKey:@"page"];
More information about the commits
mailing list