Changeset 5201

Show
Ignore:
Timestamp:
01/26/08 12:15:01 (6 months ago)
Author:
morris
Message:

WCDebug defaults setting to enable debug menu in release builds

Files:

Legend:

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

    r5001 r5201  
    367367         
    368368#ifdef RELEASE 
    369         [[NSApp mainMenu] removeItemAtIndex:[[NSApp mainMenu] indexOfItemWithSubmenu:_debugMenu]]; 
     369        if(![WCSettings boolForKey:WCDebug]) 
     370                [[NSApp mainMenu] removeItemAtIndex:[[NSApp mainMenu] indexOfItemWithSubmenu:_debugMenu]]; 
    370371#endif 
    371372         
  • WiredClient/trunk/WCSettings.h

    r4831 r5201  
    158158#define WCSSLNullTransferCiphers                                @"WCSSLNullTransferCiphers" 
    159159 
     160#define WCDebug                                                                 @"WCDebug" 
     161 
    160162 
    161163+ (NSDictionary *)eventForTag:(NSUInteger)tag; 
  • WiredClient/trunk/WCSettings.m

    r4965 r5201  
    390390                        WCSSLNullTransferCiphers, 
    391391                 
     392                // --- debug 
     393                [NSNumber numberWithBool:NO], 
     394                        WCDebug, 
     395                 
    392396                NULL]; 
    393397}