mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Clear changes after gmodel load and use key objects from map returned by -names to populate the Gorm data structures. The "names" objects in the nib are analogous to the Gorm name table and should easily translate.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23099 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f112aa80be
commit
7d9741531c
3 changed files with 13 additions and 4 deletions
|
@ -1,3 +1,12 @@
|
|||
2006-06-23 00:57 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormGModelWrapperLoader.m: call
|
||||
-[NSDocument updateChangeCount:] to
|
||||
clear changes so that the document isn't flagged as needing
|
||||
to be saved right after load.
|
||||
* GormCore/GormNibWrapperLoader.m: Use the objects in the map
|
||||
returned by -names in -loadFileWrapper:withDocument:.
|
||||
|
||||
2006-06-18 14:40 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormCore/GormNibWrapperLoader.m: Added filter to remove
|
||||
|
|
|
@ -534,7 +534,7 @@ static BOOL gormFileOwnerDecoded;
|
|||
[doc setName: @"NSFont" forObject: obj];
|
||||
[doc attachObject: obj toParent: nil];
|
||||
// RELEASE(item);
|
||||
// fontManager = obj; // FIXME!!!!
|
||||
// [document setFontManager: obj]; // FIXME!!!!
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -652,8 +652,8 @@ static BOOL gormFileOwnerDecoded;
|
|||
|
||||
[doc rebuildObjToNameMapping];
|
||||
|
||||
// RELEASE(unarchiver);
|
||||
// [doc touch]; // mark the document
|
||||
// clear the changes, since we just loaded the document.
|
||||
[document updateChangeCount: NSChangeCleared];
|
||||
|
||||
return YES;
|
||||
}
|
||||
|
|
|
@ -201,7 +201,7 @@
|
|||
nibFilesOwner = [container objectForName: @"File's Owner"];
|
||||
|
||||
id docFilesOwner = [document filesOwner];
|
||||
NSMapTable objects = [container objects];
|
||||
NSMapTable objects = [container names];
|
||||
NSArray *objs = NSAllMapTableKeys(objects);
|
||||
NSEnumerator *en = [objs objectEnumerator];
|
||||
id o = nil;
|
||||
|
|
Loading…
Reference in a new issue