Oolite 1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
OldSchoolPropertyListWriting.h
Go to the documentation of this file.
1/*
2 OldSchoolPropertyListWriting.h
3 Copyright 2006-2013 Jens Ayton
4
5 A protocol for writing property lists in the OpenStep/simple text format. Why? Because as of
6 Tiger, the system functions to write plists reject the format. I, however, like it, because
7 it’s clear and legible. Fight the power!
8
9 Permission is hereby granted, free of charge, to any person obtaining a copy of this software
10 and associated documentation files (the "Software"), to deal in the Software without
11 restriction, including without limitation the rights to use, copy, modify, merge, publish,
12 distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
13 Software is furnished to do so, subject to the following conditions:
14
15 The above copyright notice and this permission notice shall be included in all copies or
16 substantial portions of the Software.
17
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
19 BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
21 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23*/
24
25#import <Foundation/Foundation.h>
26
27
28@protocol OldSchoolPropertyListWriting
29
30- (NSString *)oldSchoolPListFormatWithIndentation:(unsigned)inIndentation errorDescription:(NSString **)outErrorDescription;
31
32@end
33
34
35@interface NSObject (OldSchoolPropertyListWriting)
36
37- (NSData *)oldSchoolPListFormatWithErrorDescription:(NSString **)outErrorDescription;
38
39@end
40
41
42
43@interface NSString (OldSchoolPropertyListWriting) <OldSchoolPropertyListWriting>
44@end
45
46@interface NSNumber (OldSchoolPropertyListWriting) <OldSchoolPropertyListWriting>
47@end
48
49@interface NSData (OldSchoolPropertyListWriting) <OldSchoolPropertyListWriting>
50@end
51
52@interface NSArray (OldSchoolPropertyListWriting) <OldSchoolPropertyListWriting>
53@end
54
55@interface NSDictionary (OldSchoolPropertyListWriting) <OldSchoolPropertyListWriting>
56@end