mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Tidied and improved logging for read from and write to file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14638 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8286dec7f6
commit
72d997aa58
6 changed files with 262 additions and 100 deletions
|
@ -1248,14 +1248,20 @@ _bundle_load_callback(Class theClass, struct objc_category *theCategory)
|
|||
|
||||
path = [self pathForResource: @"Info-gnustep" ofType: @"plist"];
|
||||
if (path)
|
||||
_infoDict = [[NSDictionary alloc] initWithContentsOfFile: path];
|
||||
{
|
||||
_infoDict = [[NSDictionary alloc] initWithContentsOfFile: path];
|
||||
}
|
||||
else
|
||||
{
|
||||
path = [self pathForResource: @"Info" ofType: @"plist"];
|
||||
if (path)
|
||||
_infoDict = [[NSDictionary alloc] initWithContentsOfFile: path];
|
||||
{
|
||||
_infoDict = [[NSDictionary alloc] initWithContentsOfFile: path];
|
||||
}
|
||||
else
|
||||
_infoDict = RETAIN([NSDictionary dictionary]);
|
||||
{
|
||||
_infoDict = RETAIN([NSDictionary dictionary]);
|
||||
}
|
||||
}
|
||||
return _infoDict;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue