sogo/UI/SOGoUI/WOContext+UIx.m
Wolfgang Sourdeau 6afa336110 Monotone-Parent: 68e241a279756be7a7c1d8d9b8547e113f07073e
Monotone-Revision: 8799c458544f40843eb4692288485d9d1aeec685

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-08-06T14:17:06
Monotone-Branch: ca.inverse.sogo
2007-08-06 14:17:06 +00:00

45 lines
1.3 KiB
Objective-C

/*
Copyright (C) 2000-2005 SKYRIX Software AG
This file is part of OpenGroupware.org.
OGo is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version.
OGo is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public
License along with OGo; see the file COPYING. If not, write to the
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
#import <Foundation/NSUserDefaults.h>
#import <Foundation/NSValue.h>
#import "WOContext+UIx.h"
@implementation WOContext (UIx)
- (BOOL)isUIxDebugEnabled {
NSNumber *bv;
if ((bv = [self objectForKey:@"_isUIxDebugEnabled"]) == nil) {
NSUserDefaults *ud;
BOOL uixDebugEnabled;
ud = [NSUserDefaults standardUserDefaults];
uixDebugEnabled = [ud boolForKey:@"SOGoUIxDebugEnabled"];
bv = [NSNumber numberWithBool:uixDebugEnabled];
[self setObject:bv forKey:@"_isUIxDebugEnabled"];
}
return [bv boolValue];
}
@end