How can I use NSAlert with no icon?

1.1k views Asked by At

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 come with its icon and its header text. Can I get rid of both of them and just have only my custom view?

1

There are 1 answers

1
Anoop Vaidya On

You can do some hack:

enter image description here

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