NSUserNotification OS X size

I have this code that allows me to display notifications.

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];

      

I saw that the text is too large, truncated. Can this be prevented?

I also added the ability to reply to a notification. Only one line is displayed in the text box. Is it possible to increase the size (height) of the area?

Or better, is it possible to increase the size (height) of the notification to fit the larger text or text field?

Thanks in advance for your help

+3
size macos nsusernotification


source to share


No one has answered this question yet

Check out similar questions:

327
How do I get the size of a file in C?
290
Using jQuery to get viewport size
268
Getting file size in Python?
12
NSUserNotification style
7
NSUserNotification with custom soundName
five
show NSUserNotification addActions on click
3
read the NSUserNotification display style
2
Flexbox image does not take maximum height
0
Choosing and defining font sizes on macOS
0
Increase the size of the text on the paddle button



All Articles
Loading...
X
Show
Funny
Dev
Pics