Oolite
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@protocol OldSchoolPropertyListWriting
28
29- (NSString*)oldSchoolPListFormatWithIndentation:(unsigned)inIndentation errorDescription:(NSString**)outErrorDescription;
30
31@end
32
33@interface NSObject (OldSchoolPropertyListWriting)
34
35- (NSData*)oldSchoolPListFormatWithErrorDescription:(NSString**)outErrorDescription;
36
37@end
38
39@interface NSString (OldSchoolPropertyListWriting) <OldSchoolPropertyListWriting>
40@end
41
42@interface NSNumber (OldSchoolPropertyListWriting) <OldSchoolPropertyListWriting>
43@end
44
45@interface NSData (OldSchoolPropertyListWriting) <OldSchoolPropertyListWriting>
46@end
47
48@interface NSArray (OldSchoolPropertyListWriting) <OldSchoolPropertyListWriting>
49@end
50
51@interface NSDictionary (OldSchoolPropertyListWriting) <OldSchoolPropertyListWriting>
52@end