Adium

Changeset 25580

Show
Ignore:
Timestamp:
11/13/2008 09:50:52 PM (2 months ago)
Author:
applmak
Message:

Fixes #11352.
For future applescript implementers, when you use uniqueID to reference objects, you should implement valueFor<Key>WithID.
That is all.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/AIApplication.m

    r25435 r25580  
    7171        return chatWindows; 
    7272} 
     73- (AIMessageWindow *)valueInChatWindowsWithUniqueID:(NSNumber *)uniqueID 
     74{ 
     75        for (NSWindow *window in [self orderedWindows]) 
     76                if ([window isKindOfClass:[AIMessageWindow class]]) 
     77                        if ([window hash] == [uniqueID unsignedIntValue]) 
     78                                return (AIMessageWindow *)window; 
     79        return nil; 
     80} 
    7381- (NSArray *)chats 
    7482{