Simplify.

This commit is contained in:
Steve Checkoway
2006-01-15 04:28:14 +00:00
parent 353453a9df
commit 4c9fdec12b
@@ -51,17 +51,17 @@ void MakeNewCocoaWindow( const void *data, unsigned length )
view = [window contentView]; view = [window contentView];
// Set some properties. // Set some properties.
[mt addAction:@selector(setOneShot:) withTarget:window andObject:bYES]; ADD_ACTION1( mt, window, setOneShot:, bYES );
[mt addAction:@selector(setReleasedWhenClosed:) withTarget:window andObject:bYES]; ADD_ACTION1( mt, window, setExcludedFromWindowsMenu:, bYES );
[mt addAction:@selector(setExcludedFromWindowsMenu:) withTarget:window andObject:bYES]; ADD_ACTION1( mt, window, useOptimizedDrawing:, bYES );
[mt addAction:@selector(useOptimizedDrawing:) withTarget:window andObject:bYES]; ADD_ACTION1( mt, window, setTitle:, [NSString stringWithUTF8String:PRODUCT_NAME] );
[mt addAction:@selector(center) withTarget:window]; ADD_ACTION0( mt, window, center );
[mt addAction:@selector(setTitle:) withTarget:window andObject:[NSString stringWithUTF8String:PRODUCT_NAME]];
// Set subviews. // Set subviews.
[mt addAction:@selector(addSubview:) withTarget:view andObject:text]; ADD_ACTION1( mt, view, addSubview:, text );
[mt addAction:@selector(addSubview:) withTarget:view andObject:iView]; ADD_ACTION1( mt, view, addSubview:, iView );
// Make key and order front. // 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. // Perform all of the actions in order on the main thread.
[mt performOnMainThread]; [mt performOnMainThread];
[mt release]; [mt release];