Add method definitions.

This commit is contained in:
Gregory John Casamento 2021-10-16 13:14:14 -04:00
parent 67966d6cdd
commit 3d850f7eae
2 changed files with 128 additions and 0 deletions

View file

@ -27,6 +27,37 @@
#import <AppKit/NSArrayController.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_11, GS_API_LATEST)
@interface NSDictionaryControllerKeyValuePair : NSObject
- (instancetype) init;
/**
* Returns a copy of the key
*/
- (NSString *) key;
- (void) setKey: (NSString *)key;
/**
* Returns a strong reference to the value
*/
- (id) value;
- (void) setValue: (id)value;
/**
* Localized key copy
*/
- (NSString *) localizedKey;
- (void) setLocalizedKey: (NSString *)localizedKey;
/**
* Is this key value pair included in the underlying dictionary.
*/
- (BOOL) isExplicitlyIncluded;
- (void) setExplicitlyIncluded: (BOOL)flag;
@end
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
#if defined(__cplusplus)
@ -35,6 +66,44 @@ extern "C" {
@interface NSDictionaryController : NSArrayController
/**
* Returns a new object conforming to the NSDictionaryControllerKeyValuePair
* informal protocol. Overriden from superclass.
*/
- (NSDictionaryControllerKeyValuePair *) newObject;
/**
* Returns a copy of the initialKey.
*/
- (NSString *) initialKey;
- (void) setInitialKey: (NSString *)initialKey;
/**
* Returns a strong reference to the initialValue.
*/
- (id) initialValue;
- (void) setInitialValue: (id)value;
/**
* Returns a copy of the included keys. Included keys are always represented by a
* key value pair whether or not they are included in the underlying dictionary.
*/
- (NSArray *) includedKeys;
- (void) setIncludedKeys: (NSArray *)includedKeys;
/**
* Returns a copy of the included keys. Included keys are always represented by a
* key value pair whether or not they are included in the underlying dictionary.
*/
- (NSArray *) excludedKeys;
- (void) setExcludedKeys: (NSArray *)excludedKeys;
- (NSDictionary *) localizedKeyDictionary;
- (void) setLocalizedKeyDictionary: (NSDictionary *)dict;
- (NSString *) localizedKeyTable;
- (void) setLocalizedKeyTable: (NSString *)keyTable;
@end
#if defined(__cplusplus)

View file

@ -26,5 +26,64 @@
@implementation NSDictionaryController
- (NSDictionaryControllerKeyValuePair *) newObject
{
return nil;
}
- (NSString *) initialKey
{
return nil;
}
- (void) setInitialKey: (NSString *)key
{
}
- (id) initialValue
{
return nil;
}
- (void) setInitialValue: (id)value
{
}
- (NSArray *) includedKeys
{
return nil;
}
- (void) setIncludedKeys: (NSArray *)includedKeys
{
}
- (NSArray *) excludedKeys
{
return nil;
}
- (void) setExcludedKeys: (NSArray *)excludedKeys
{
}
- (NSDictionary *) localizedKeyDictionary
{
return nil;
}
- (void) setLocalizedKeyDictionary: (NSDictionary *)dict
{
}
- (NSString *) localizedKeyTable
{
return nil;
}
- (void) setLocalizedKeyTable: (NSString *)keyTable
{
}
@end