On 24 mrt 2011, at 01:49, Peter Hosey wrote:

> On Mar 23, 2011, at 17:14:54, comm...@adium.im wrote:
>> -                                            NSString *historySince = 
>> [[NSDate dateWithTimeInterval:1.0f sinceDate:chat.lastMessageDate]
>> +                                            NSTimeInterval 
>> lastMessageInterval = [chat.lastMessageDate timeIntervalSince1970];
>> +                                            NSString *historySince = 
>> [[NSDate dateWithTimeIntervalSince1970:lastMessageInterval + 1]
> 
> Or:
> 
>       [chat.lastMessageDate dateByAddingTimeInterval:1.0]
> 
> (and it is 1.0, not 1.0f; NSTimeInterval is double everywhere)
> 

That function is new in 10.6 too.

(Although the discussion to move 1.5 to 10.6 only seems to have resolved in 
favor of moving, in this case it's pretty much trivial to do it 
10.5-compatibly.)

Thijs

Reply via email to