File:  [mozdev] / chimera / ToolbarIconServer.m
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Sun Mar 3 09:34:52 2002 UTC (17 years, 10 months ago) by macserv
Branches: MAIN
CVS tags: HEAD
Intermediary checkin: Groundwork for the icon colorization server object, most of a new specialized version of my extended tab view class, changes to the browser window's controller, and nib, and of course, to the project itself.

    1: //
    2: //  ToolbarIconServer.m
    3: //  Chimera
    4: //
    5: //  Created by Matt L.  Judy on Tue Feb 26 2002.
    6: //  Copyright (c) 2001 __MyCompanyName__. All rights reserved.
    7: //
    8: 
    9: #import "ToolbarIconServer.h"
   10: 
   11: 
   12: @implementation ToolbarIconServer
   13: 
   14: - (id)init
   15: {
   16:     if ( self = [super init] ) {
   17: 
   18:         NSColor *hueFromPrefs = [NSUnarchiver unarchiveObjectWithData:
   19:             [[NSUserDefaults standardUserDefaults] dataForKey:@"toolbarIconHue"]];
   20: 
   21:         if ( hueFromPrefs ) {
   22:             [self updateIconsWithHue:hueFromPrefs];
   23:         } else {
   24:             [self updateIconsWithOSTintHue];
   25:         }
   26:     }
   27: 
   28:     return self;
   29: }
   30: 
   31: - (NSDictionary *)icons
   32: {
   33:     return _icons;
   34: }    
   35: 
   36: - (void)updateIconsWithOSTintHue
   37: {
   38: 
   39: }
   40: 
   41: - (void)updateIconsWithHue:(NSColor *)newHue
   42: {
   43:     
   44: }
   45: 
   46: - (void)postHueChangeNotification
   47: {
   48: 
   49: }
   50: 
   51: - (void)handleHueChangeInPrefs
   52: {
   53: 
   54: }
   55: 
   56: @end

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>