From 4c9fdec12bfafea12abacd05fd9aff526a414c60 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sun, 15 Jan 2006 04:28:14 +0000 Subject: [PATCH] Simplify. --- .../arch/LoadingWindow/LoadingWindow_Cocoa.m | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/stepmania/src/arch/LoadingWindow/LoadingWindow_Cocoa.m b/stepmania/src/arch/LoadingWindow/LoadingWindow_Cocoa.m index 634c0e18e4..b0d3e08d04 100644 --- a/stepmania/src/arch/LoadingWindow/LoadingWindow_Cocoa.m +++ b/stepmania/src/arch/LoadingWindow/LoadingWindow_Cocoa.m @@ -51,17 +51,17 @@ void MakeNewCocoaWindow( const void *data, unsigned length ) view = [window contentView]; // Set some properties. - [mt addAction:@selector(setOneShot:) withTarget:window andObject:bYES]; - [mt addAction:@selector(setReleasedWhenClosed:) withTarget:window andObject:bYES]; - [mt addAction:@selector(setExcludedFromWindowsMenu:) withTarget:window andObject:bYES]; - [mt addAction:@selector(useOptimizedDrawing:) withTarget:window andObject:bYES]; - [mt addAction:@selector(center) withTarget:window]; - [mt addAction:@selector(setTitle:) withTarget:window andObject:[NSString stringWithUTF8String:PRODUCT_NAME]]; + ADD_ACTION1( mt, window, setOneShot:, bYES ); + ADD_ACTION1( mt, window, setExcludedFromWindowsMenu:, bYES ); + ADD_ACTION1( mt, window, useOptimizedDrawing:, bYES ); + ADD_ACTION1( mt, window, setTitle:, [NSString stringWithUTF8String:PRODUCT_NAME] ); + ADD_ACTION0( mt, window, center ); // Set subviews. - [mt addAction:@selector(addSubview:) withTarget:view andObject:text]; - [mt addAction:@selector(addSubview:) withTarget:view andObject:iView]; + ADD_ACTION1( mt, view, addSubview:, text ); + ADD_ACTION1( mt, view, addSubview:, iView ); // Make key and order front. - [mt addAction:@selector(makeKeyAndOrderFront:) withTarget:window andObject:nil]; + ADD_ACTION1( mt, window, makeKeyAndOrderFront:, nil ); + // Perform all of the actions in order on the main thread. [mt performOnMainThread]; [mt release];