Overriding default width of a NSAlert?
Overriding default width of a NSAlert?
- Subject: Overriding default width of a NSAlert?
- From: "Werner Sharp" <email@hidden>
- Date: Fri, 20 Oct 2006 11:46:55 -0700
- Thread-topic: Overriding default width of a NSAlert?
Does anyone know a way to make an NSAlert slightly wider than the
default?
I tried changing the window's frame but that did not work:
NSAlert *alert = [[NSAlert alloc] init;
// initialize buttons, text, etc.
NSWindows *win = [alert window]
NSRect rect = [win frame]
rect.size.width = rect.size.width + 100;
[win setFrame:rect display:YES animate:NO]
[alert runModal]
Thanks for any help.
Werner Sharp
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden