BathyScapheのアイコンセット生成&適用ツール
Revisão | 0405b25ae07d04c510e057d67abe8a18585478d1 (tree) |
---|---|
Hora | 2012-05-31 00:01:06 |
Autor | masakih <masakih@user...> |
Commiter | masakih |
[Mod] プロパティを使用するように変更
@@ -17,16 +17,10 @@ | ||
17 | 17 | NSString *title; |
18 | 18 | NSString *identifier; |
19 | 19 | } |
20 | - | |
21 | -- (void)setImage:(NSImage *)image; | |
22 | -- (NSImage *)image; | |
23 | -- (void)setImageFileWrapper:(NSFileWrapper *)imageFileWrapper; | |
24 | -- (NSFileWrapper *)imageFileWrapper; | |
25 | -- (void)setPlaceholder:(NSImage *)placeholder; | |
26 | -- (NSImage *)placeholder; | |
27 | -- (void)setTitle:(NSString *)title; | |
28 | -- (NSString *)title; | |
29 | -- (void)setIdentifier:(NSString *)identifier; | |
30 | -- (NSString *)identifier; | |
20 | +@property (retain, nonatomic) NSImage *image; | |
21 | +@property (retain, nonatomic) NSFileWrapper *imageFileWrapper; | |
22 | +@property (retain, nonatomic) NSImage *placeholder; | |
23 | +@property (copy, nonatomic) NSString *title; | |
24 | +@property (copy, nonatomic) NSString *identifier; | |
31 | 25 | |
32 | 26 | @end |
@@ -11,6 +11,8 @@ | ||
11 | 11 | #import "IconSetComposer.h" |
12 | 12 | |
13 | 13 | @implementation BSCSIcons |
14 | +@synthesize image, imageFileWrapper, placeholder; | |
15 | +@synthesize title, identifier; | |
14 | 16 | |
15 | 17 | - (id)copyWithZone:(NSZone *)zone |
16 | 18 | { |
@@ -24,78 +26,6 @@ | ||
24 | 26 | return result; |
25 | 27 | } |
26 | 28 | |
27 | -- (void)setImage:(NSImage *)new | |
28 | -{ | |
29 | - if(image == new) return; | |
30 | - | |
31 | - id temp = image; | |
32 | - image = [new retain]; | |
33 | - [temp release]; | |
34 | -} | |
35 | -- (NSImage *)image | |
36 | -{ | |
37 | - return image; | |
38 | -} | |
39 | -- (void)setImageFileWrapper:(NSFileWrapper *)new | |
40 | -{ | |
41 | - if(imageFileWrapper == new) return; | |
42 | - | |
43 | - id temp = imageFileWrapper; | |
44 | - imageFileWrapper = [new retain]; | |
45 | - [temp release]; | |
46 | -} | |
47 | -- (NSFileWrapper *)imageFileWrapper | |
48 | -{ | |
49 | - return imageFileWrapper; | |
50 | -} | |
51 | -- (void)setPlaceholder:(NSImage *)new | |
52 | -{ | |
53 | - if(placeholder == new) return; | |
54 | - | |
55 | - id temp = placeholder; | |
56 | - placeholder = [new retain]; | |
57 | - [temp release]; | |
58 | -} | |
59 | -- (NSImage *)placeholder | |
60 | -{ | |
61 | - return placeholder; | |
62 | -} | |
63 | -- (void)setDefaultImage:(NSImage *)new | |
64 | -{ | |
65 | - if(placeholder == new) return; | |
66 | - | |
67 | - id temp = placeholder; | |
68 | - placeholder = [new retain]; | |
69 | - [temp release]; | |
70 | -} | |
71 | -- (NSImage *)defaultImage | |
72 | -{ | |
73 | - return placeholder; | |
74 | -} | |
75 | -- (void)setTitle:(NSString *)new | |
76 | -{ | |
77 | - if(title == new) return; | |
78 | - | |
79 | - id temp = title; | |
80 | - title = [new copy]; | |
81 | - [temp release]; | |
82 | -} | |
83 | -- (NSString *)title | |
84 | -{ | |
85 | - return title; | |
86 | -} | |
87 | -- (void)setIdentifier:(NSString *)new | |
88 | -{ | |
89 | - if(identifier == new) return; | |
90 | - | |
91 | - id temp = identifier; | |
92 | - identifier = [new copy]; | |
93 | - [temp release]; | |
94 | -} | |
95 | -- (NSString *)identifier | |
96 | -{ | |
97 | - return identifier; | |
98 | -} | |
99 | 29 | |
100 | 30 | //- (BOOL)validateValue:(id *)ioValue forKey:(NSString *)inKey error:(NSError **)outError |
101 | 31 | //{ |