NSWindowDelegate 关于窗口大小 位置 显示 等api说明
来源:互联网 发布:tensorflow 指定显卡 编辑:程序博客网 时间:2024/05/17 07:57
https://developer.apple.com/library/mac/documentation/Cocoa/Reference/NSWindowDelegate_Protocol/#//apple_ref/occ/intfm/NSWindowDelegate/windowDidBecomeMain:
NSWindowDelegate
Inherits From
Conforms To
Not Applicable
Import Statement
OBJECTIVE-C
Availability
Available in OS X v10.6 and later
The NSWindowDelegate
protocol defines the methods that a delegate of NSWindow
should implement. All methods in this protocol are optional.
By implementing these methods, the delegate may respond to window resizing, moving, exposing, minimizing, and a number of other window events.
Managing Sheets
- window:willPositionSheet:usingRect:
- windowWillBeginSheet:
- windowDidEndSheet:
Sizing Windows
- windowWillResize:toSize:
- windowDidResize:
- windowWillStartLiveResize:
- windowDidEndLiveResize:
Minimizing Windows
- windowWillMiniaturize:
- windowDidMiniaturize:
- windowDidDeminiaturize:
Zooming Window
- windowWillUseStandardFrame:defaultFrame:
- windowShouldZoom:toFrame:
Managing Full-Screen Presentation
- window:willUseFullScreenContentSize:
- window:willUseFullScreenPresentationOptions:
- windowWillEnterFullScreen:
- windowDidEnterFullScreen:
- windowWillExitFullScreen:
- windowDidExitFullScreen:
Custom Full-Screen Presentation Animations
- customWindowsToEnterFullScreenForWindow:
- customWindowsToEnterFullScreenForWindow:onScreen:
- window:startCustomAnimationToEnterFullScreenWithDuration:
- window:startCustomAnimationToEnterFullScreenOnScreen:withDuration:
- windowDidFailToEnterFullScreen:
- customWindowsToExitFullScreenForWindow:
- window:startCustomAnimationToExitFullScreenWithDuration:
- windowDidFailToExitFullScreen:
Moving Windows
- windowWillMove:
- windowDidMove:
- windowDidChangeScreen:
- windowDidChangeScreenProfile:
- windowDidChangeBackingProperties:
Closing Windows
- windowShouldClose:
- windowWillClose:
Managing Key Status
- windowDidBecomeKey:
- windowDidResignKey:
[[NSNotificationCenterdefaultCenter] addObserver:
selector
name:NSWindowDidResignKeyNotification
object:;
Managing Main Status
- windowDidBecomeMain:
Tells the delegate that the window has become main.
Declaration
SWIFT
optional func windowDidBecomeMain(_
notification
: NSNotification)OBJECTIVE-C
- (void)windowDidBecomeMain:(NSNotification *)
notification
Parameters
notification
A notification named
NSWindowDidBecomeMainNotification
.Discussion
You can retrieve the window object in question by sending
object
tonotification
.Availability
Available in OS X v10.0 and later.
Available as part of an informal protocol prior to OS X v10.6.
See Also
– windowDidResignMain:
- windowDidResignMain:
Tells the delegate that the window has resigned main window status.
Declaration
SWIFT
optional func windowDidResignMain(_
notification
: NSNotification)OBJECTIVE-C
- (void)windowDidResignMain:(NSNotification *)
notification
Parameters
notification
A notification named
NSWindowDidResignMainNotification
.Discussion
You can retrieve the window object in question by sending
object
tonotification
.Availability
Available in OS X v10.0 and later.
Available as part of an informal protocol prior to OS X v10.6.
See Also
– windowDidBecomeMain:
Managing Field Editors
- windowWillReturnFieldEditor:toObject:
Updating Windows
- windowDidUpdate:
Exposing Windows
- windowDidExpose:
Managing Occlusion State
- windowDidChangeOcclusionState:
Dragging Windows
- window:shouldDragDocumentWithEvent:from:withPasteboard:
Getting the Undo Manager
- windowWillReturnUndoManager:
Managing Titles
- window:shouldPopUpDocumentPathMenu:
Managing Restorable State
- window:willEncodeRestorableState:
- window:didDecodeRestorableState:
Managing Presentation in Version Browsers
- window:willResizeForVersionBrowserWithMaxPreferredSize:maxAllowedSize:
- windowWillEnterVersionBrowser:
- windowDidEnterVersionBrowser:
- windowWillExitVersionBrowser:
- windowDidExitVersionBrowser:
- NSWindowDelegate 关于窗口大小 位置 显示 等api说明
- 多文档设置子窗口大小及位置等
- win32 api 子控件在主窗口中的位置大小
- mfc动态改变对话框窗口大小和显示位置
- mfc动态改变对话框窗口大小和显示位置
- MFC动态改变对话框窗口大小和显示位置
- 改变窗口大小位置
- 窗口位置、大小设置
- 自定义窗口大小并且让定义在自定义窗口的什么位置显示,窗口可以拖动。
- 关于DOM中元素位置、大小的API
- 关于Windows编程(MFC、API等 自己明白就可)向窗口写内容不能立即显示的问题
- 记录窗口位置与大小
- mfc 改变窗口位置大小
- 设置Gvim的启动位置与窗口大小,代码折叠及配色等
- 如何控制弹出窗口的大小、尺寸、位置等的样式
- 自定义对话框 位置 大小等
- Opencv改变imshow窗口大小,窗口位置
- Win32Api程序设计 常用域改变(设定)窗口位置、大小的api
- OpenGL使用libPng读取png图片
- guava学习目录
- win7实现多用户同时登陆
- 台大林轩田《机器学习基石》学习笔记:相关领域与三大原则
- 字符串处理类
- NSWindowDelegate 关于窗口大小 位置 显示 等api说明
- CS229 Lecture Notes(4): Generative Learning Algorithm
- 偶然间发现的,大家可以看看
- HUD 1881 毕业bg(01背包变形)
- Android情景案例——Activity与Service通讯交互
- android studio转eclipse(二)
- 专利申请流程
- 解决通过UIAlertView按钮点击事件pop回上级页面键盘会响应问题
- Android事件传递的理解