Chanok
Chanok

Reputation: 800

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

Upvotes: 4

Views: 1144

Answers (1)

Anoop Vaidya
Anoop Vaidya

Reputation: 46563

You can do some hack:

enter image description here

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

Upvotes: 4

Related Questions