comparison src/main/macosx/SDLMain.m @ 1663:11775724e3fe SDL-1.3

fine tuning indent output
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:29:03 +0000
parents 782fd950bd46
children cd3db072ba8a
comparison
equal deleted inserted replaced
1662:782fd950bd46 1663:11775724e3fe
74 } 74 }
75 75
76 #if SDL_USE_NIB_FILE 76 #if SDL_USE_NIB_FILE
77 /* A helper category for NSString */ 77 /* A helper category for NSString */
78 @interface NSString (ReplaceSubString) - (NSString *) stringByReplacingRange:(NSRange) 78 @interface NSString (ReplaceSubString) - (NSString *) stringByReplacingRange:(NSRange)
79 aRange with:(NSString *) 79 aRange
80 with:(NSString *)
80 aString; 81 aString;
81 @end 82 @end
82 #endif 83 #endif
83 @ interface SDLApplication:NSApplication 84 @ interface SDLApplication:NSApplication
84 @ end @ implementation SDLApplication 85 @ end @ implementation SDLApplication
112 113
113 #if SDL_USE_NIB_FILE 114 #if SDL_USE_NIB_FILE
114 115
115 /* Fix menu to contain the real app name instead of "SDL App" */ 116 /* Fix menu to contain the real app name instead of "SDL App" */
116 -(void) fixMenu:(NSMenu *) 117 -(void) fixMenu:(NSMenu *)
117 aMenu withAppName:(NSString *) 118 aMenu
118 appName { 119 withAppName:(NSString *)
120 appName
121 {
119 NSRange aRange; 122 NSRange aRange;
120 NSEnumerator *enumerator; 123 NSEnumerator *enumerator;
121 NSMenuItem *menuItem; 124 NSMenuItem *menuItem;
122 125
123 aRange =[[aMenu title] rangeOfString:@"SDL App"]; 126 aRange =[[aMenu title] rangeOfString:@"SDL App"];
320 /* We're done, thank you for playing */ 323 /* We're done, thank you for playing */
321 exit (status); 324 exit (status);
322 } 325 }
323 326
324 @end @ implementation NSString (ReplaceSubString) - (NSString *) stringByReplacingRange:(NSRange) 327 @end @ implementation NSString (ReplaceSubString) - (NSString *) stringByReplacingRange:(NSRange)
325 aRange with:(NSString *) 328 aRange
329 with:(NSString *)
326 aString 330 aString
327 { 331 {
328 unsigned int bufferSize; 332 unsigned int bufferSize;
329 unsigned int selfLen =[self length]; 333 unsigned int selfLen =[self length];
330 unsigned int aStringLen =[aString length]; 334 unsigned int aStringLen =[aString length];