久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<legend id='CShZj'><style id='CShZj'><dir id='CShZj'><q id='CShZj'></q></dir></style></legend>

  • <tfoot id='CShZj'></tfoot>

      <i id='CShZj'><tr id='CShZj'><dt id='CShZj'><q id='CShZj'><span id='CShZj'><b id='CShZj'><form id='CShZj'><ins id='CShZj'></ins><ul id='CShZj'></ul><sub id='CShZj'></sub></form><legend id='CShZj'></legend><bdo id='CShZj'><pre id='CShZj'><center id='CShZj'></center></pre></bdo></b><th id='CShZj'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='CShZj'><tfoot id='CShZj'></tfoot><dl id='CShZj'><fieldset id='CShZj'></fieldset></dl></div>

        • <bdo id='CShZj'></bdo><ul id='CShZj'></ul>

        <small id='CShZj'></small><noframes id='CShZj'>

        單擊外部時隱藏 MAAttachedWindow

        Hide MAAttachedWindow when clicking outside(單擊外部時隱藏 MAAttachedWindow)
            <bdo id='okdHA'></bdo><ul id='okdHA'></ul>
              <legend id='okdHA'><style id='okdHA'><dir id='okdHA'><q id='okdHA'></q></dir></style></legend>

              <tfoot id='okdHA'></tfoot>
                <tbody id='okdHA'></tbody>
            1. <small id='okdHA'></small><noframes id='okdHA'>

              1. <i id='okdHA'><tr id='okdHA'><dt id='okdHA'><q id='okdHA'><span id='okdHA'><b id='okdHA'><form id='okdHA'><ins id='okdHA'></ins><ul id='okdHA'></ul><sub id='okdHA'></sub></form><legend id='okdHA'></legend><bdo id='okdHA'><pre id='okdHA'><center id='okdHA'></center></pre></bdo></b><th id='okdHA'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='okdHA'><tfoot id='okdHA'></tfoot><dl id='okdHA'><fieldset id='okdHA'></fieldset></dl></div>
                  本文介紹了單擊外部時隱藏 MAAttachedWindow的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在使用 MAAttachedWindow 在下顯示自定義窗口菜單欄中的 NSStatusItem.一切正常,但是當用戶在窗口外單擊時,我找不到一種簡單的方法來隱藏它.我想實現這種行為,因為它是用戶所期望的.

                  I'm using an MAAttachedWindow to display a custom window under a NSStatusItem in the Menubar. Everything works fine, but I can't find an easy way to hide it when the user clicks outside of the window. I want to implement this behavior because it's what the user expects.

                  這是用于顯示MAAttachedWindow的代碼:

                  - (void)toggleAttachedWindowAtPoint:(NSPoint)pt {
                      if (!self.attachedWindow) {  
                          self.attachedWindow = [[MAAttachedWindow alloc] initWithView:logView
                                attachedToPoint:pt 
                                 inWindow:nil 
                                   onSide:MAPositionBottom 
                                  atDistance:5.0];
                  
                    [self.attachedWindow setLevel:kCGMaximumWindowLevel];
                   }
                  
                   if(isVisible)
                    [self.attachedWindow makeKeyAndOrderFront:self];
                   else
                    [self.attachedWindow orderOut];
                  }
                  

                  此代碼由帶有自定義視圖的 NSStatusItem 觸發,該視圖攔截對其的點擊.

                  This code gets triggered by an NSStatusItem with a custom view which intercepts a click on it.

                  推薦答案

                  你應該可以通過窗口的委托方法做到這一點:

                  You should be able to do this via the window's delegate method:

                  - (void)windowDidResignKey:(NSNotification *)notification

                  將自己設置為窗口的委托,并實現它以調用您的切換方法.

                  Set yourself as the window's delegate, and implement that to call through to your toggle method.

                  這篇關于單擊外部時隱藏 MAAttachedWindow的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to get Location (latitude amp; longitude value) in variable on iOS?(如何在 iOS 上的變量中獲取位置(緯度和經度值)?)
                  iOS 8 requestWhenInUseAuthorization no Popup(iOS 8 requestWhenInUseAuthorization 沒有彈出)
                  Calculate new coordinate x meters and y degree away from one coordinate(計算距離一個坐標的新坐標 x 米和 y 度)
                  Get row index of custom cell in UITableview(獲取 UITableview 中自定義單元格的行索引)
                  ios tabbar put text in the middle when no image(ios標簽欄在沒有圖像時將文本放在中間)
                  respondsToSelector fails for appearance proxy(respondsToSelector 外觀代理失敗)
                    1. <legend id='KKh9a'><style id='KKh9a'><dir id='KKh9a'><q id='KKh9a'></q></dir></style></legend>

                          <i id='KKh9a'><tr id='KKh9a'><dt id='KKh9a'><q id='KKh9a'><span id='KKh9a'><b id='KKh9a'><form id='KKh9a'><ins id='KKh9a'></ins><ul id='KKh9a'></ul><sub id='KKh9a'></sub></form><legend id='KKh9a'></legend><bdo id='KKh9a'><pre id='KKh9a'><center id='KKh9a'></center></pre></bdo></b><th id='KKh9a'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='KKh9a'><tfoot id='KKh9a'></tfoot><dl id='KKh9a'><fieldset id='KKh9a'></fieldset></dl></div>

                          • <bdo id='KKh9a'></bdo><ul id='KKh9a'></ul>
                            <tfoot id='KKh9a'></tfoot>

                              <tbody id='KKh9a'></tbody>
                          • <small id='KKh9a'></small><noframes id='KKh9a'>

                          • 主站蜘蛛池模板: www国产精品 | 久草在线在线精品观看 | 国产91中文| 亚洲在线 | 国产色片| 精品久久久久久久人人人人传媒 | 黄色三级在线播放 | 亚洲自拍偷拍av | 国产精品久久久久久久久久久久午夜片 | 国产在线97| 超碰在线97国产 | 欧美精品一区三区 | 久久成人一区 | 黄免费观看视频 | 国产不卡一区在线观看 | 久久99成人| 99视频 | 亚洲精品视频在线看 | 成人在线观看亚洲 | 欧美日韩午夜精品 | 久久久久久国产 | 日韩一二三区视频 | 成人国产精品久久 | 亚洲精品久久久久中文字幕欢迎你 | 成人免费观看男女羞羞视频 | 亚洲高清视频在线 | 91一区| 国产精品日韩在线观看一区二区 | 国产蜜臀 | 一区二区在线 | 激情自拍偷拍 | 伊人网站 | 精品国产乱码久久久久久88av | 日韩欧美一区二区三区免费观看 | 99精品视频免费观看 | 国产精品久久久久久久久久了 | 精品成人一区二区 | 成人精品免费视频 | 日韩欧美专区 | 日韩中文字幕免费在线观看 | 一区二区三区不卡视频 |