I'm using an NSAlert to alert the user of some stuff:
This view, however, appears in the middle of the screen rather than centered on the actual app window. Is there a way to manage where the NSAlert will appear in relation to the app's window?
Preferably I would like to implement the same behavior seen in many of apple's apps, where the alert-view appears to drop down from the top of the current app and then sticks to that place.
Code:
- (void)fn_ShowPopup: (NSString*)str_Title: (NSString*)str_Message
{
NSAlert *alertView = [NSAlert alertWithMessageText:str_Title defaultButton:@"OK" alternateButton:nil otherButton:nil informativeTextWithFormat:str_Message];
[alertView runModal];
}
This view, however, appears in the middle of the screen rather than centered on the actual app window. Is there a way to manage where the NSAlert will appear in relation to the app's window?
Preferably I would like to implement the same behavior seen in many of apple's apps, where the alert-view appears to drop down from the top of the current app and then sticks to that place.