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
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today