Macos NSUserX通知大小
我有这个代码,可以显示通知Macos NSUserX通知大小,macos,size,nsusernotification,Macos,Size,Nsusernotification,我有这个代码,可以显示通知 NSUserNotification *notification = [[NSUserNotification alloc] init]; notification.title = [NSString stringWithFormat:@"%@ (%@)",titre, numero]; notification.informativeText = message; notification.soundName = NSUserNotificationDefaultS
NSUserNotification *notification = [[NSUserNotification alloc] init];
notification.title = [NSString stringWithFormat:@"%@ (%@)",titre, numero];
notification.informativeText = message;
notification.soundName = NSUserNotificationDefaultSoundName;
notification.responsePlaceholder = @"Reply";
notification.hasReplyButton = true;
[[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification:notification];
我看到文本太大,被截断了。有可能防止这种情况吗
我还添加了回复通知的功能。文本框仅显示一行。是否也可以增加该区域的大小(高度)
或者更好,可以增加通知的大小(高度),以适应更多文本或更大的文本框
提前感谢您的帮助我认为在NSUserNotification中不可能调整任何内容的大小,至少在10.9上是这样。我想在通知中使用粗体字体…:(