131 |
|
edited = NO; |
132 |
|
|
133 |
|
devs = @"/dev"; |
134 |
< |
home = NSHomeDirectory(); |
134 |
> |
home = [NSHomeDirectory() retain]; |
135 |
|
volsDS = [TableDS new]; |
136 |
|
SCSIds = [TableDS new]; |
137 |
|
|
140 |
|
NSLog (@"%s - Can't create NSImageCell?", __PRETTY_FUNCTION__); |
141 |
|
|
142 |
|
blank = [NSImage new]; |
143 |
< |
locked = [NSImage alloc]; |
144 |
< |
if ( [locked initWithContentsOfFile: |
145 |
< |
[[NSBundle mainBundle] |
146 |
< |
pathForImageResource: @"nowrite.icns"]] == nil ) |
143 |
> |
locked = [[NSImage alloc] initWithContentsOfFile: |
144 |
> |
[[NSBundle mainBundle] pathForImageResource: @"nowrite.icns"]]; |
145 |
> |
if (locked == nil ) |
146 |
|
NSLog(@"%s - Couldn't open write protection image", __PRETTY_FUNCTION__); |
147 |
|
|
148 |
|
return self; |
150 |
|
|
151 |
|
- (void) dealloc |
152 |
|
{ |
153 |
< |
[volsDS dealloc]; |
154 |
< |
[SCSIds dealloc]; |
155 |
< |
[lockCell dealloc]; |
156 |
< |
[locked dealloc]; |
157 |
< |
[blank dealloc]; |
153 |
> |
[volsDS release]; |
154 |
> |
[SCSIds release]; |
155 |
> |
[lockCell release]; |
156 |
> |
[blank release]; |
157 |
> |
[locked release]; |
158 |
|
[super dealloc]; |
159 |
|
} |
160 |
|
|