~ubuntu-branches/ubuntu/edgy/sope/edgy

« back to all changes in this revision

Viewing changes to libFoundation/Foundation/NSScriptKeyValueCoding.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Ley
  • Date: 2005-08-19 16:53:31 UTC
  • Revision ID: james.westby@ubuntu.com-20050819165331-hs683wz1osm708pw
Tags: upstream-4.4rc.2
ImportĀ upstreamĀ versionĀ 4.4rc.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
   NSScriptKeyValueCoding.h
 
3
 
 
4
   Copyright (C) 2002, SKYRIX Software AG, Helge Hess
 
5
   All rights reserved.
 
6
   
 
7
   Author: Helge Hess <helge.hess@skyrix.com>
 
8
 
 
9
   This file is part of libFoundation.
 
10
 
 
11
   Permission to use, copy, modify, and distribute this software and its
 
12
   documentation for any purpose and without fee is hereby granted, provided
 
13
   that the above copyright notice appear in all copies and that both that
 
14
   copyright notice and this permission notice appear in supporting
 
15
   documentation.
 
16
 
 
17
   We disclaim all warranties with regard to this software, including all
 
18
   implied warranties of merchantability and fitness, in no event shall
 
19
   we be liable for any special, indirect or consequential damages or any
 
20
   damages whatsoever resulting from loss of use, data or profits, whether in
 
21
   an action of contract, negligence or other tortious action, arising out of
 
22
   or in connection with the use or performance of this software.
 
23
*/
 
24
 
 
25
#ifndef __NSScriptKeyValueCoding_h__
 
26
#define __NSKeyValueCoding_h__
 
27
 
 
28
#include <Foundation/NSObject.h>
 
29
 
 
30
@interface NSObject(NSScriptKeyValueCoding)
 
31
 
 
32
/* type coercion */
 
33
 
 
34
- (id)coerceValue:(id)_val forKey:(NSString *)_key;
 
35
 
 
36
/* query array properties (toManyRelationshipKeys) */
 
37
 
 
38
- (id)valueAtIndex:(unsigned)_idx     inPropertyWithKey:(NSString *)_key;
 
39
- (id)valueWithName:(NSString *)_name inPropertyWithKey:(NSString *)_key;
 
40
- (id)valueWithUniqueID:(id)_uid      inPropertyWithKey:(NSString *)_key;
 
41
 
 
42
/* modifying array properties (toManyRelationshipKeys) */
 
43
 
 
44
- (void)insertValue:(id)_val atIndex:(unsigned)_idx
 
45
  inPropertyWithKey:(NSString *)_key;
 
46
- (void)insertValue:(id)_val inPropertyWithKey:(NSString *)_key;
 
47
 
 
48
- (void)removeValueAtIndex:(unsigned)_idx fromPropertyWithKey:(NSString *)_key;
 
49
 
 
50
- (void)replaceValueAtIndex:(unsigned)_idx inPropertyWithKey:(NSString *)_key
 
51
  withValue:(id)_val;
 
52
 
 
53
@end
 
54
 
 
55
#endif /* __NSScriptKeyValueCoding_h__ */