Varous tidyups

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25330 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2007-07-14 04:34:00 +00:00
parent 350af41dcc
commit 89a0cb9080
7 changed files with 329 additions and 284 deletions

View file

@ -4472,7 +4472,12 @@ static NSFileManager *fm = nil;
* in XML format, the standard SGML comment sequences are used.
* </p>
* <p>See the documentation for [NSPropertyListSerialization] for more
* information on what a property list is.</p>
* information on what a property list is.
* </p>
* <p>If the string cannot be parsed as a normal property list format,
* this method also tries to parse it as 'strings file' format (see the
* -propertyListFromStringsFileFormat method).
* </p>
*/
- (id) propertyList
{
@ -4496,8 +4501,22 @@ static NSFileManager *fm = nil;
if (result == nil)
{
[NSException raise: NSGenericException
format: @"Parse failed - %@", error];
extern id GSPropertyListFromStringsFormat(NSString *string);
NS_DURING
{
result = GSPropertyListFromStringsFormat(self);
}
NS_HANDLER
{
result = nil;
}
NS_ENDHANDLER
if (result == nil)
{
[NSException raise: NSGenericException
format: @"Parse failed - %@", error];
}
}
return result;
}