Added NSApplication code
Missed off some semicolons
Removed terminating semicolon from SET_MSGBOX_STR_ATTRIBUTE