#import <AppKit/NSAlert.h>

@implementation    NSAlert (hys)


/*alertWithError:

Returns an NSAlert object initialized from information in an error object.

+ (NSAlert *)alertWithError:(NSError *)error
Parameters
error

Error information to display.
Return Value

Initialized alert.
Discussion

The NSAlert class extracts the localized error description, recovery suggestion, and recovery options from anError and uses them as the alert’s message text, informative text, and button titles, respectively.
Availability
Available in Mac OS X v10.4 and later.*/
+ (NSAlert *)alertWithError:(NSError *)error{}



@end