Determinate background click

Discussion in 'Mac Programming' started by guydor, Oct 8, 2011.

  1. guydor macrumors member

    Joined:
    Mar 10, 2009
    #1
    Hi,

    I've created an app that contains NSStatusItem when you click on, NSPopover is being shown.

    My question is how can I determinate if the user clicks on the background, in this case I want to close the NSPopover.


    Thanks!
     
  2. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #2
    Change the NSPopover's behavior property to NSPopoverBehaviorTransient.

     

Share This Page