0
Mac OSX 용 알림을 만들 때. 표기법의 (고유 한) 이름을 설정할 수는 있지만 제목은 변경되지 않습니다. 응용 프로그램의 이름 만 보여줍니다. 당신이 통지의 이름을 발견으로delphi-XE6을 사용하여 Mac OSX에서 알림 표시
는procedure TPWTrayIcon.MacNotification(pTitle, pMessage: string);
var
Note : TNOtification;
NoteCenter : TNotificationCenter;
begin
NoteCenter:=TNotificationCenter.Create(nil);
try
note := NoteCenter.CreateNotification(pTitle,pMessage,Now+EncodeTime(0,0,1,0));
try
note.AlertAction := 'Alert';
// note.name := pTitle;
// note.AlertBody := pMessage;
// note.FireDate := Now + EncodeTime(0, 0, 1, 0);
NoteCenter.ScheduleNotification(note);
finally
note.DisposeOf;
end
finally
NoteCenter.Free;
end;