Changeset 93 for trunk/qcontrol/cocoaControlDOServer.m
- Timestamp:
- 09/15/07 01:06:09 (2 years ago)
- Files:
-
- 1 modified
-
trunk/qcontrol/cocoaControlDOServer.m (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qcontrol/cocoaControlDOServer.m
r81 r93 35 35 - (id) init 36 36 { 37 // NSLog(@"cocoaControlDOServer: init :%@ withName:%@\n", [guest description], name);37 // NSLog(@"cocoaControlDOServer: init"); 38 38 39 39 [super init]; … … 49 49 guests = [[NSMutableDictionary alloc] init]; 50 50 [guests retain]; 51 51 52 52 return self; 53 } 54 55 - (void) dealloc 56 { 57 // NSLog(@"cocoaControlDOServer: dealloc"); 58 59 [guests release]; 60 61 if (lastGuestDeactivated) { 62 [lastGuestDeactivated release]; 63 } 64 65 [super dealloc]; 53 66 } 54 67 … … 80 93 if ([guests objectForKey:name] != nil) { 81 94 [guests removeObjectForKey:name]; 82 // NSLog(@"OK");83 95 return TRUE; 84 96 } else { … … 130 142 131 143 transitionSpecifications.type = 7; //transition; 132 transitionSpecifications.option = 2; //option;144 transitionSpecifications.option = 0; //option; 133 145 transitionSpecifications.wid = 0; //wid 134 146 transitionSpecifications.backColour = 0; //background color … … 211 223 212 224 transitionSpecifications.type = 7; //transition; 213 transitionSpecifications.option = 1; //option;225 transitionSpecifications.option = 8; //option; 214 226 transitionSpecifications.wid = 0; //wid 215 227 transitionSpecifications.backColour = 0; //background color … … 250 262 } 251 263 264 /* NEED SOME DOXYGEN HERE */ 265 - (BOOL) guestDeactivated: (bycopy NSString *) name 266 { 267 // NSLog(@"cocoaControlDOServer: guestDeactivated: %@", name); 268 269 if (lastGuestDeactivated) { 270 [lastGuestDeactivated release]; 271 } 272 if (name) { 273 lastGuestDeactivated = [NSString stringWithString:name]; 274 [lastGuestDeactivated retain]; 275 } else { 276 lastGuestDeactivated = nil; 277 } 278 279 return TRUE; 280 } 281 252 282 - (int) guestWindowLevel: (NSString *) guest 253 283 { … … 354 384 id obj = [guests objectForKey:guest]; 355 385 if (obj != nil) { 356 // NSLog(@"OK");357 386 return [obj guestStop]; 358 387 } else { … … 361 390 } 362 391 } 392 393 - (id) lastGuestDeactivated 394 { 395 // NSLog(@"cocoaControlDOServer: lastGuestDeactivated: %@", lastGuestDeactivated); 396 397 if (lastGuestDeactivated) { 398 if ([[guests objectForKey:lastGuestDeactivated] fullscreen]) { 399 return lastGuestDeactivated; 400 } 401 } 402 return nil; 403 } 404 405 - (NSMutableDictionary *) guests 406 { 407 return guests; 408 } 363 409 @end
