2012-12-16 145 views

回答

9

您可以定義窗口的打開方式。

在動畫下的界面檢查器中,您可以選擇文檔窗口樣式,並且應該得到相同的行爲。

或者代碼:

[self.window setAnimationBehavior:NSWindowAnimationBehaviorDocumentWindow]; 

這裏所有的行爲,你可以使用

enum { 
    NSWindowAnimationBehaviorDefault = 0,  // let AppKit infer animation behavior for this window 
    NSWindowAnimationBehaviorNone = 2,   // suppress inferred animations (don't animate) 

    NSWindowAnimationBehaviorDocumentWindow = 3, 
    NSWindowAnimationBehaviorUtilityWindow = 4, 
    NSWindowAnimationBehaviorAlertPanel = 5 
}; 
+0

就是這樣,謝謝! – tajmahal