• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

BathyScapheのアイコンセット生成&適用ツール


Commit MetaInfo

Revisão0405b25ae07d04c510e057d67abe8a18585478d1 (tree)
Hora2012-05-31 00:01:06
Autormasakih <masakih@user...>
Commitermasakih

Mensagem de Log

[Mod] プロパティを使用するように変更

Mudança Sumário

Diff

--- a/BSCSIcons.h
+++ b/BSCSIcons.h
@@ -17,16 +17,10 @@
1717 NSString *title;
1818 NSString *identifier;
1919 }
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;
3125
3226 @end
--- a/BSCSIcons.m
+++ b/BSCSIcons.m
@@ -11,6 +11,8 @@
1111 #import "IconSetComposer.h"
1212
1313 @implementation BSCSIcons
14+@synthesize image, imageFileWrapper, placeholder;
15+@synthesize title, identifier;
1416
1517 - (id)copyWithZone:(NSZone *)zone
1618 {
@@ -24,78 +26,6 @@
2426 return result;
2527 }
2628
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-}
9929
10030 //- (BOOL)validateValue:(id *)ioValue forKey:(NSString *)inKey error:(NSError **)outError
10131 //{