Created
December 23, 2011 13:40
-
-
Save mikeabdullah/1514233 to your computer and use it in GitHub Desktop.
A convenience for NSAlert construction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation NSAlert (Karelia) | |
- (void)ks_setMessageTextWithFormat:(NSString *)format, ...; | |
{ | |
va_list argList; | |
va_start(argList, format); | |
NSString *formatted = [[NSString alloc] initWithFormat:format arguments:argList]; | |
va_end(argList); | |
[self setMessageText:formatted]; | |
[formatted release]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment