Dynamically Disable/Enable Zoom?

Discussion in 'Mac Programming' started by Darkroom, Jul 14, 2008.

  1. Darkroom Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #1
    is it possible to disable and enable the zoom title bar button (and attached menu item) dynamically in an IBAction statement?

    something like...

    Code:
    -(IBAction)showSheet:(id)sender
    {
    [NSApp beginSheet:sheet modalForWindow:window modalDelegate:nil didEndSelector:NULL contextInfo:NULL];
    //and then disable zoom on "window"
    }
    
     
  2. Darkroom thread starter Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #2
    guess not... :rolleyes:

    the reason i ask is because i think it's kinda dumb that when a sheet becomes visible, the toolbar and toobar button in the titlebar becomes disabled, but you can still miniaturize and zoom a window, which i think is both pointless and inconsistent...

    also, not being able to quit an application when a sheet is present is kinda ghetto... or at least i can't seem to in my app and don't really know why... especially since i can still Hide, Hide Others and Show All :rolleyes:

    *sigh*... oh apple... you and your random HIG...
     

Share This Page