How can I use NSAlert without an icon?

I want to use this method

- (void)beginSheetModalForWindow:(NSWindow *)window modalDelegate:(id)delegate didEndSelector:(SEL)didEndSelector contextInfo:(void *)contextInfo; 

I found that NSAlert has this method. However, NSAlert will always have an icon and title text. Can I get rid of both of them and just have only my user view?

+4
source share
1 answer

You can hack:

enter image description here

Here I used a transparent image, click here to download .

+4
source

All Articles