mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Add method definitions.
This commit is contained in:
parent
67966d6cdd
commit
3d850f7eae
2 changed files with 128 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue