• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Overriding default width of a NSAlert?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: CalendarMonthImageGenerator
  • Next by Date: Re: KVC with bindings to array elements?
  • Previous by thread: Re: CalendarMonthImageGenerator
  • Next by thread: How to limit expansion in NSOutlineView
  • Index(es):
    • Date
    • Thread