Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flickery NSAlertPanel



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.