57 |
self = [super init]; |
self = [super init]; |
58 |
|
|
59 |
if(self) { |
if(self) { |
|
#ifdef GNUSTEP |
|
|
Class gwclass = [[NSBundle mainBundle] principalClass]; |
|
|
#else |
|
|
Class gwclass = [[NSBundle mainBundle] classNamed: @"GWorkspace"]; |
|
|
#endif |
|
60 |
NSTextField *widthLabel, *heightLabel; |
NSTextField *widthLabel, *heightLabel; |
61 |
|
|
|
gworkspace = (id<GWProtocol>)[gwclass gworkspace]; |
|
|
|
|
62 |
[self setFrame: frame]; |
[self setFrame: frame]; |
63 |
panel = (id<InspectorsProtocol>)apanel; |
panel = (id<InspectorsProtocol>)apanel; |
64 |
fm = [NSFileManager defaultManager]; |
fm = [NSFileManager defaultManager]; |
66 |
|
|
67 |
index = idx; |
index = idx; |
68 |
|
|
69 |
ASSIGN (extsarr, [gworkspace imageExtensions]); |
ASSIGN (extsarr, [GWLib imageExtensions]); |
70 |
|
|
71 |
imrect = NSMakeRect(0, 30, 257, 215); |
imrect = NSMakeRect(0, 30, 257, 215); |
72 |
imview = [[NSImageView alloc] initWithFrame: imrect]; |
imview = [[NSImageView alloc] initWithFrame: imrect]; |