Apple Developer文档笔记(一)AppKit App Structure

导语

这篇文章是方便自己学习理解苹果开发者的文档的笔记,希望能给有需要的同学一些帮助,因为自己翻译理解的内容,
必然存在一些不足,还望指出。

Apple Developer

(https://developer.apple.com/)  *苹果开发者网站

1.Core

(1)Application

	class NSApplication
	
		Declaration(声明)
		class NSApplication : NSResponder
		
		Overview(综述)
		Every app uses a single instance of NSApplication to control the main event
		 loop, keep track of the app’s windows and menus, distribute events to the 
		appropriate objects (that is, itself or one of its windows), set up 
		autorelease pools, and receive notification of app-level events.
		
		*注释
		class NSApplication 在被实例化之后控制整个应用主体的事件循环,并且跟踪应用
		轨迹,并将事件分配给合适的对象,建立 autorelease pools ,接受来自应用层的事
		件通知。
		
	class NSRunningApplication
		
		Declaration(声明)
		class NSRunningApplication : NSObject
		
		Overview(综述)
		Some properties of an app are fixed, such as the bundle identifier. Other 
		properties may vary over time, such as whether the app is hidden. 
		Properties that vary can be observed with key-value observing, in which 
		case the description comment for the method notes this capability.
		
		An NSRunningApplication instance remains valid after the app exits. However, 
		most properties lose their significance, and some properties may not be 
		available on a terminated application.
		
		*注释
		在一个应用内的一些已经被固定得工程,例如打包的标识府。另外一个工程可能已经
		超时,例如被隐藏的应用。有些工程的性能和方法的描述注释,在这种情况下应该留
		意敏感的关键值。
		
		一个 NSRunningApplication 实例化之后,当app退出之后仍然是有效的。不过。大部
		分工程失去他们本身的意义,并且在被终止的应用中的有一些工程可能会失效。
		
	protocol NSApplicationDelegate
	
		Declaration(声明)
		protocol NSApplicationDelegate
		
		*注释
		协议授权
		
	function NSApplic
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值