david paeme wrote:

instead of a string (%@) the


%@ is the code for the -description of an object. Strictly speaking, that isn't merely a string, but the result of sending a message.


UInt lastupdate = [userDefaults integerForKey:@"lastDBUpdate"];
NSString *urlString = [NSString stringWithFormat:@"%...@?act=upd&lu= % d",WS_URL,lastUpdated];

Either you have typos, or that isn't doing what you think it's doing. The UInt is named "lastupdate", but the arg to stringWithFormat: is named "lastUpdated". Note the difference in case for 'U' and the presence of 'd' for the latter.


i still have no idea why that solved the problem - my hunch would be the string parsing in the NSURLConnection - as both strings should be quite equal, no?

You could NSLog the text, generated both ways, and probably confirm or refute the hunch. Evidence is better than hunches, especially when it's easy to get.

  -- GG

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to