adium 3777:664a53cbeca8: Oops, this method is 10.6 only.
Thijs Alkemade
thijsalkemade at gmail.com
Thu Mar 24 16:00:55 UTC 2011
On 24 mrt 2011, at 01:49, Peter Hosey wrote:
> On Mar 23, 2011, at 17:14:54, commits at 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
More information about the devel
mailing list