Show
Ignore:
Timestamp:
10/17/07 22:31:12 (1 year ago)
Author:
morris
Message:

Update handling of archived data in prefs for WiredAdditions?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCChat.m

    r4799 r4965  
    9090        NSColor         *color; 
    9191 
    92         font = [WCSettings objectForKey:WCChatFont]; 
     92        font = [NSUnarchiver unarchiveObjectWithData:[WCSettings objectForKey:WCChatFont]]; 
    9393 
    9494        if(![[_chatOutputTextView font] isEqualTo:font]) { 
     
    9898        } 
    9999         
    100         color = [WCSettings objectForKey:WCChatBackgroundColor]; 
     100        color = [NSUnarchiver unarchiveObjectWithData:[WCSettings objectForKey:WCChatBackgroundColor]]; 
    101101 
    102102        if(![[_chatOutputTextView backgroundColor] isEqualTo:color]) { 
     
    106106        } 
    107107 
    108         color = [WCSettings objectForKey:WCChatTextColor]; 
     108        color = [NSUnarchiver unarchiveObjectWithData:[WCSettings objectForKey:WCChatTextColor]]; 
    109109 
    110110        if(![[_chatOutputTextView textColor] isEqualTo:color]) { 
     
    119119         
    120120        [_chatOutputTextView setLinkTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: 
    121                 [WCSettings objectForKey:WCChatURLsColor],                      NSForegroundColorAttributeName, 
    122                 [NSNumber numberWithInt:NSSingleUnderlineStyle],        NSUnderlineStyleAttributeName, 
     121                [NSUnarchiver unarchiveObjectWithData:[WCSettings objectForKey:WCChatURLsColor]], 
     122                        NSForegroundColorAttributeName, 
     123                [NSNumber numberWithInt:NSSingleUnderlineStyle], 
     124                        NSUnderlineStyleAttributeName, 
    123125                NULL]]; 
    124126 
    125         [_userListTableView setFont:[WCSettings objectForKey:WCChatUserListFont]]; 
     127        [_userListTableView setFont:[NSUnarchiver unarchiveObjectWithData:[WCSettings objectForKey:WCChatUserListFont]]]; 
    126128        [_userListTableView setUsesAlternatingRowBackgroundColors:[WCSettings boolForKey:WCChatUserListAlternateRows]]; 
    127129         
     
    13321334        if(textView == _setTopicTextView) { 
    13331335                value = [self topicTextView:textView doCommandBySelector:selector]; 
    1334                 [_setTopicTextView setFont:[WCSettings objectForKey:WCChatFont]]; 
     1336                [_setTopicTextView setFont:[NSUnarchiver unarchiveObjectWithData:[WCSettings objectForKey:WCChatFont]]]; 
    13351337        } 
    13361338        else if(textView == _chatInputTextView) { 
    13371339                value = [self chatTextView:textView doCommandBySelector:selector]; 
    1338                 [_chatInputTextView setFont:[WCSettings objectForKey:WCChatFont]]; 
     1340                [_chatInputTextView setFont:[NSUnarchiver unarchiveObjectWithData:[WCSettings objectForKey:WCChatFont]]]; 
    13391341        } 
    13401342