mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 16:20:46 +00:00
* Source/GNUmakefile: Remove NSManagedObjectContext.[hm] from compile
* Source/NSManagedObjectContext.h * Source/NSManagedObjectContext.m: Delete * Source/NSObjectController.m: Remove #import and add @class declaration. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33200 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7606bc7007
commit
b3c789309a
5 changed files with 10 additions and 152 deletions
|
@ -1,3 +1,11 @@
|
|||
2011-05-29 20:34-EDT Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/GNUmakefile: Remove NSManagedObjectContext.[hm] from compile
|
||||
* Source/NSManagedObjectContext.h
|
||||
* Source/NSManagedObjectContext.m: Delete
|
||||
* Source/NSObjectController.m: Remove #import and add @class
|
||||
declaration.
|
||||
|
||||
2011-05-29 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSButtonCell.m (-drawImage:withFrame:inView:): Use rint
|
||||
|
|
|
@ -110,7 +110,6 @@ NSKeyValueBinding.m \
|
|||
NSLayoutManager.m \
|
||||
NSLevelIndicator.m \
|
||||
NSLevelIndicatorCell.m \
|
||||
NSManagedObjectContext.m \
|
||||
NSMatrix.m \
|
||||
NSMenu.m \
|
||||
NSMenuView.m \
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
/** <title>NSManagedObjectContext</title>
|
||||
|
||||
<abstract>
|
||||
This class is the context object for the controller classes.
|
||||
It contains information which is used by those classes to maintain
|
||||
the internal state.
|
||||
</abstract>
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
|
||||
Author: Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
Date: 2007
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
||||
This library 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 of the License, or (at your option) any later version.
|
||||
|
||||
This library 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 this library; see the file COPYING.LIB.
|
||||
If not, see <http://www.gnu.org/licenses/> or write to the
|
||||
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#import <Foundation/NSObject.h>
|
||||
|
||||
@class NSMergePolicy;
|
||||
|
||||
@interface NSManagedObjectContext : NSObject <NSCoding>
|
||||
{
|
||||
NSMergePolicy *_mergePolicy;
|
||||
BOOL _propagatesDeleted;
|
||||
int _fetchTimestamp;
|
||||
BOOL _retainsRegisteredObjects;
|
||||
}
|
||||
@end
|
|
@ -1,107 +0,0 @@
|
|||
/** <title>NSManagedObjectContext</title>
|
||||
|
||||
<abstract>
|
||||
This class is the context object for the controller classes.
|
||||
It contains information which is used by those classes to maintain
|
||||
the internal state.
|
||||
</abstract>
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
|
||||
Author: Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
Date: 2007
|
||||
|
||||
This file is part of the GNUstep GUI Library.
|
||||
|
||||
This library 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 of the License, or (at your option) any later version.
|
||||
|
||||
This library 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 this library; see the file COPYING.LIB.
|
||||
If not, see <http://www.gnu.org/licenses/> or write to the
|
||||
Free Software Foundation, 51 Franklin Street, Fifth Floor,
|
||||
Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#import "NSManagedObjectContext.h"
|
||||
#import <Foundation/NSArchiver.h>
|
||||
#import <Foundation/NSException.h>
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSString.h>
|
||||
#import <Foundation/NSArray.h>
|
||||
|
||||
@interface NSMergePolicy : NSObject <NSCoding>
|
||||
{
|
||||
int _typeCode;
|
||||
}
|
||||
@end
|
||||
|
||||
@implementation NSMergePolicy
|
||||
- (id) initWithCoder: (NSCoder *)coder
|
||||
{
|
||||
if ((self = [super init]) != nil)
|
||||
{
|
||||
if ([coder allowsKeyedCoding])
|
||||
{
|
||||
// NSLog(@"merge policy: In keyed coder... %@",[coder keyMap]);
|
||||
_typeCode = [coder decodeIntForKey: @"NSTypeCode"];
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) encodeWithCoder: (NSCoder *)coder
|
||||
{
|
||||
if ([coder allowsKeyedCoding])
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
}
|
||||
@end
|
||||
|
||||
@implementation NSManagedObjectContext
|
||||
- (id) initWithCoder: (NSCoder *)coder
|
||||
{
|
||||
if ((self = [super init]) != nil)
|
||||
{
|
||||
if ([coder allowsKeyedCoding])
|
||||
{
|
||||
// NSLog(@"managed object: In keyed coder... %@",[coder keyMap]);
|
||||
_mergePolicy = RETAIN([coder decodeObjectForKey:
|
||||
@"NSMergePolicy"]);
|
||||
_propagatesDeleted = [coder decodeBoolForKey:
|
||||
@"NSPropagatesDeleted"];
|
||||
_fetchTimestamp = [coder decodeIntForKey:
|
||||
@"NSFetchTimestamp"];
|
||||
_retainsRegisteredObjects = [coder decodeBoolForKey:
|
||||
@"NSRetainsRegisteredObjects"];
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) encodeWithCoder: (NSCoder *)coder
|
||||
{
|
||||
if ([coder allowsKeyedCoding])
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
}
|
||||
@end
|
|
@ -38,6 +38,8 @@
|
|||
#import "AppKit/NSKeyValueBinding.h"
|
||||
#import "GSBindingHelpers.h"
|
||||
|
||||
@class NSManagedObjectContext;
|
||||
|
||||
@interface _NSManagedProxy : NSObject
|
||||
{
|
||||
NSString *_entity_name_key;
|
||||
|
|
Loading…
Reference in a new issue