mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
NSDictionary methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3370 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
af60b6ed3b
commit
d0c3557719
3 changed files with 65 additions and 0 deletions
13
ChangeLog
13
ChangeLog
|
@ -1,3 +1,16 @@
|
|||
Wed Dec 2 16:11:05 1998 Adam Fedor <fedor@ultra.doc.com>
|
||||
|
||||
* src/NSDictionary.m (-fileGroupOwnerAccountName): New method.
|
||||
(-fileModificationDate): Likewise.
|
||||
(fileOwnerAccountName): Likewise.
|
||||
(filePosixPermissions): Likewise.
|
||||
(fileSize): Likewise.
|
||||
(fileSystemFileNumber): Likewise.
|
||||
(fileSystemNumber): Likewise.
|
||||
(fileType): Likewise.
|
||||
* src/include/NSDictionary.h: New methods. Contributed by Camile
|
||||
TROILLARD <tuscland@wanadoo.fr>.
|
||||
|
||||
Wed Dec 2 20:30:00 1998 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* src/GNUmakefile: Added NSDateFormatter
|
||||
|
|
|
@ -72,6 +72,16 @@
|
|||
|
||||
- (BOOL) writeToFile: (NSString*)path atomically: (BOOL)useAuxiliaryFile;
|
||||
|
||||
/* Accessing file attributes */
|
||||
- (NSString *) fileGroupOwnerAccountName;
|
||||
- (NSDate *) fileModificationDate;
|
||||
- (NSString *) fileOwnerAccountName;
|
||||
- (unsigned long) filePosixPermissions;
|
||||
- (unsigned long long) fileSize;
|
||||
- (unsigned long) fileSystemFileNumber;
|
||||
- (unsigned long) fileSystemNumber;
|
||||
- (NSString *) fileType;
|
||||
|
||||
@end
|
||||
|
||||
@interface NSMutableDictionary: NSDictionary
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSAutoreleasePool.h>
|
||||
#include <Foundation/NSFileManager.h>
|
||||
|
||||
@interface NSDictionaryNonCore : NSDictionary
|
||||
@end
|
||||
|
@ -737,6 +738,47 @@ compareIt(id o1, id o2, void* context)
|
|||
return [result autorelease];
|
||||
}
|
||||
|
||||
/* Accessing file attributes */
|
||||
- (NSString *) fileGroupOwnerAccountName
|
||||
{
|
||||
return [self objectForKey: NSFileGroupOwnerAccountName];
|
||||
}
|
||||
|
||||
- (NSDate *) fileModificationDate
|
||||
{
|
||||
return [self objectForKey: NSFileModificationDate];
|
||||
}
|
||||
|
||||
- (NSString *) fileOwnerAccountName
|
||||
{
|
||||
return [self objectForKey: NSFileOwnerAccountName];
|
||||
}
|
||||
|
||||
- (unsigned long) filePosixPermissions
|
||||
{
|
||||
return [self objectForKey: NSFilePosixPermissions];
|
||||
}
|
||||
|
||||
- (unsigned long long) fileSize
|
||||
{
|
||||
return [self objectForKey: NSFileSize];
|
||||
}
|
||||
|
||||
- (unsigned long) fileSystemFileNumber
|
||||
{
|
||||
return [self objectForKey: NSFileSystemFileNumber];
|
||||
}
|
||||
|
||||
- (unsigned long) fileSystemNumber
|
||||
{
|
||||
return [self objectForKey: NSFileSystemNumber];
|
||||
}
|
||||
|
||||
- (NSString *) fileType
|
||||
{
|
||||
return [self objectForKey: NSFileType];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation NSMutableDictionary
|
||||
|
|
Loading…
Reference in a new issue