• 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
Re: Flickery NSAlertPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flickery NSAlertPanel


  • Subject: Re: Flickery NSAlertPanel
  • From: Brian Webster <email@hidden>
  • Date: Sat, 31 Jan 2004 23:52:28 -0600

You shouldn't be having your application go modal when you put a sheet up, since the whole point of having a sheet rather than just a modal panel is so the rest of the application can continue to respond to events. If you really want to run modal, just run a standalone modal alert panel. If you want a sheet, call beginAlertSheet and handle the user clicking one of the buttons in your sheetDidEnd callback method.

On Jan 30, 2004, at 6:56 PM, Moray Taylor wrote:

Hi,

I am using the following code to open an alert sheet (it's Java, but I expect the principal is the same Obj-C)...

NSAlertPanel.beginAlertSheet(Heading, Button1, Button2, Button3,ParentWindow,MD,new NSSelector("sheetDidEnd::", new Class[] {MD.getClass()}),null,null,MainText);

NSApplication.sharedApplication().runModalForWindow(ParentWindow);

The thing is, when the sheet opens, it flickers slightly once the sheet has fully extended, as if it disappears for a split-second then reappears. It's quite annoying, it doesn't happen with any of my custom sheets, or save/open dialog sheets.

Has anyone seen anything like this before?

Thanks in advance

Moray
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Flickery NSAlertPanel (From: Moray Taylor <email@hidden>)

  • Prev by Date: Re: Disabling FontPanel UI elements that we don't support
  • Next by Date: Re: Help Viewer can't open localized help - fixed!!
  • Previous by thread: Flickery NSAlertPanel
  • Next by thread: [ANN] AMRollOverButton class
  • Index(es):
    • Date
    • Thread