sheets

How do I use the return value of a sheet to decide whether or not to close a window?

I want to use windowShouldClose: in my NSWindowController subclass to pop up a sheet asking if the user wants to save changes before closing with Save, Cancel, and Don't Save buttons. The issue I'm running in to is that beginSheetModalForWindow:... uses a delegate instead of a return value. I can return NO in windowShouldClose:, but th...

Cocoa: NSApp beginSheet sets the application delegate?

I am trying to display a custom sheet in my application, but I think I am doing something wrong. While everything seems to be working just fine, I have a rather odd side-effect. (which took hours to figure out). It turns out that everytime I display a sheet in my application, the Application delegate gets set to the instance of the sheet...

Placing Varibles into an external Sheet

Trying to Build an Online D&d program which stores the character info into Tables my problem is the game works just fine while your playing but as soon as you exit game all varibles are lost which means you have to restart from scratch the next time you log on... So this is a Two Fold Question What is the Best type of External Sheet to s...

Usable mainmenu when sheet is shown

How does one react to menuitems that are clicked via mouse or invoked via keyboard, e.g: CMD+Q ? [NSApp beginSheet:my_sheet ...arguments... ]; /* The sheet is now shown and the mainmenu isn't usable. How does one make it usable? */ [NSApp endSheet:my_sheet returnCode:0]; ...

overloading cascade style sheets

Hi all, We have a project that will need to work in IE6,7,8. I'm not that experienced with stylesheets, however I know there are various ways to load stylesheets depending on browser type. My question is, is it possible to have a Master stylesheet that all of the browsers will use and then import an additional one that overwrites vari...

Adding a button index to this

I have multiple action sheets in a view. I use the following code to get them to do an action but it seems to only work for the 1st button, not any of the other buttons. How can I get it to work with the 2nd and 3rd button, etc.? Here's the code: - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIn...