mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 19:10:37 +00:00
Remove calls to debug method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25399 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
85b36eece3
commit
7baadf2e7c
3 changed files with 56 additions and 32 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-08-19 21:18-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
* Source/NSController.m
|
||||||
|
* Source/NSObjectController.m: Remove calls to debug method.
|
||||||
|
|
||||||
2007-08-19 Fred Kiefer <FredKiefer@gmx.de>
|
2007-08-19 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSButton.m ([performKeyEquivalent:]): Only test for modal
|
* Source/NSButton.m ([performKeyEquivalent:]): Only test for modal
|
||||||
|
|
|
@ -61,7 +61,6 @@
|
||||||
{
|
{
|
||||||
if([aDecoder allowsKeyedCoding])
|
if([aDecoder allowsKeyedCoding])
|
||||||
{
|
{
|
||||||
NSLog(@"%@-%@",self,[aDecoder keyMap]);
|
|
||||||
ASSIGN(_declared_keys,[aDecoder decodeObjectForKey: @"NSDeclaredKeys"]);
|
ASSIGN(_declared_keys,[aDecoder decodeObjectForKey: @"NSDeclaredKeys"]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -45,15 +45,18 @@
|
||||||
@implementation _NSManagedProxy
|
@implementation _NSManagedProxy
|
||||||
- (id) initWithCoder: (NSCoder *)coder
|
- (id) initWithCoder: (NSCoder *)coder
|
||||||
{
|
{
|
||||||
if([coder allowsKeyedCoding])
|
if((self = [super init]) != nil)
|
||||||
{
|
{
|
||||||
NSLog(@"%@ - %@",self,[coder keyMap]);
|
if([coder allowsKeyedCoding])
|
||||||
ASSIGN(_entity_name_key,[coder decodeObjectForKey: @"NSEntityName"]);
|
{
|
||||||
}
|
ASSIGN(_entity_name_key,[coder decodeObjectForKey: @"NSEntityName"]);
|
||||||
else
|
}
|
||||||
{
|
else
|
||||||
ASSIGN(_entity_name_key,[coder decodeObject]);
|
{
|
||||||
|
ASSIGN(_entity_name_key,[coder decodeObject]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) encodeWithCoder: (NSCoder *)coder
|
- (void) encodeWithCoder: (NSCoder *)coder
|
||||||
|
@ -94,6 +97,7 @@
|
||||||
[self setContent: content];
|
[self setContent: content];
|
||||||
[self setObjectClass: [NSMutableDictionary class]];
|
[self setObjectClass: [NSMutableDictionary class]];
|
||||||
[self setEditable: YES];
|
[self setEditable: YES];
|
||||||
|
_managed_proxy = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
@ -112,35 +116,51 @@
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) encodeWithCoder: (NSCoder *)aCoder
|
- (void) encodeWithCoder: (NSCoder *)coder
|
||||||
{
|
{
|
||||||
[super encodeWithCoder: aCoder];
|
[super encodeWithCoder: coder];
|
||||||
// TODO
|
if([coder allowsKeyedCoding])
|
||||||
}
|
|
||||||
|
|
||||||
- (id) initWithCoder: (NSCoder *)aDecoder
|
|
||||||
{
|
|
||||||
self = [super initWithCoder: aDecoder];
|
|
||||||
if ([self automaticallyPreparesContent])
|
|
||||||
{
|
|
||||||
if ([self managedObjectContext] != nil)
|
|
||||||
{
|
|
||||||
[self fetch: aDecoder];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
[self prepareContent];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if([aDecoder allowsKeyedCoding])
|
|
||||||
{
|
{
|
||||||
_is_editable = [aDecoder decodeBoolForKey: @"NSEditable"];
|
[coder encodeBool: _is_editable forKey: @"NSEditable"];
|
||||||
_automatically_prepares_content = [aDecoder decodeBoolForKey: @"NSAutomaticallyPreparesContent"];
|
[coder encodeBool: _automatically_prepares_content forKey: @"NSAutomaticallyPreparesContent"];
|
||||||
ASSIGN(_managed_proxy, [aDecoder decodeObjectForKey: @"_NSManagedProxy"]);
|
[coder encodeObject: _managed_proxy forKey: @"_NSManagedProxy"];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
[coder encodeValueOfObjCType: @encode(BOOL) at: &_is_editable];
|
||||||
|
[coder encodeValueOfObjCType: @encode(BOOL) at: &_automatically_prepares_content];
|
||||||
|
[coder encodeConditionalObject: _managed_proxy];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
- (id) initWithCoder: (NSCoder *)coder
|
||||||
|
{
|
||||||
|
if((self = [super initWithCoder: coder]) != nil)
|
||||||
|
{
|
||||||
|
if ([self automaticallyPreparesContent])
|
||||||
|
{
|
||||||
|
if ([self managedObjectContext] != nil)
|
||||||
|
{
|
||||||
|
[self fetch: coder];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
[self prepareContent];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if([coder allowsKeyedCoding])
|
||||||
|
{
|
||||||
|
_is_editable = [coder decodeBoolForKey: @"NSEditable"];
|
||||||
|
_automatically_prepares_content = [coder decodeBoolForKey: @"NSAutomaticallyPreparesContent"];
|
||||||
|
ASSIGN(_managed_proxy, [coder decodeObjectForKey: @"_NSManagedProxy"]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
[coder decodeValueOfObjCType: @encode(BOOL) at: &_is_editable];
|
||||||
|
[coder decodeValueOfObjCType: @encode(BOOL) at: &_automatically_prepares_content];
|
||||||
|
ASSIGN(_managed_proxy, [coder decodeObject]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue