Hello.. Im new to cocoa/xcode.. hoping someone can help with a reasonably simple task. I have an application with a fullscreen window and a separate preferences window for settings. I want the cursor to disappear when I click the x button to close the preferences window, and come back when I call it back to front. The code to check if the preferences page is visible or not and control the cursor is simple enough.. if ([settingsWindow isVisible]) CGDisplayShowCursor (kCGDirectMainDisplay); else CGDisplayHideCursor (kCGDirectMainDisplay); This works on application startup if I place it after - (void) applicationDidFinishLaunchingNSNotification*)aNotification or - (void)awakeFromNib however I'm not sure the correct code to have this react during runtime when I hide/orderfront the window.. The orderfront action is set up in interface builder just by control dragging from the preferences line in the main menu to the settingsWindow and choosing orderfront, and I use apple-P to bring it back to front.. How should I be going about this?