mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-22 22:20:44 +00:00
Added comment warning users from modifying the data.classes file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20311 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3976c35f41
commit
841aae30f5
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-11-07 22:56 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormClassManager.m: Added code to [GormClassManager saveToFile:]
|
||||
and [GormClassManager loadCustomClasses:] to handle adding (and
|
||||
subsequently removing before processing) of a comment which warns
|
||||
users not to manually edit the file.
|
||||
|
||||
2004-11-07 22:18 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* GormClassInspector.m: [GormClassManager removeAction:]
|
||||
|
|
|
@ -1195,6 +1195,9 @@
|
|||
}
|
||||
}
|
||||
|
||||
[ci setObject: @"Do NOT change this file, Gorm maintains it"
|
||||
forKey: @"##Comment"];
|
||||
|
||||
return [ci writeToFile: path atomically: YES];
|
||||
}
|
||||
|
||||
|
@ -1277,7 +1280,7 @@
|
|||
NSLog(@"Could not load custom classes dictionary");
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
||||
if (classInformation == nil)
|
||||
{
|
||||
NSLog(@"Default classes file not loaded");
|
||||
|
@ -1286,6 +1289,7 @@
|
|||
|
||||
// iterate over the set of classes, if it's in the classInformation
|
||||
// list, it's a category, if it's not it's a custom class.
|
||||
[dict removeObjectForKey: @"##Comment"]; // remove the comment...
|
||||
en = [dict keyEnumerator];
|
||||
while((key = [en nextObject]) != nil)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue