ui/cocoa/MainWindow.m

changeset 864
d39301e8f962
parent 846
ffa983c223c1
child 877
aff9ad6a54a1
equal deleted inserted replaced
863:589bca248476 864:d39301e8f962
135 } 135 }
136 _topOffset = top; 136 _topOffset = top;
137 137
138 return self; 138 return self;
139 } 139 }
140
141 - (BOOL) getIsVisible {
142 return [self isVisible];
143 }
144
145 - (void) setVisible:(BOOL)visible {
146 if(visible) {
147 [self makeKeyAndOrderFront:nil];
148 } else {
149 [self close];
150 }
151 }
152
140 153
141 @end 154 @end
142 155
143 156
144 @implementation MainWindowController 157 @implementation MainWindowController

mercurial