Cocoa 系统NSNotification的Name列表

本文详细列举并解析了Cocoa系统中的NSNotification名称,涵盖了iOS和Mac OS X平台,探讨了这些通知在应用程序事件响应和组件间通信中的作用。
摘要由CSDN通过智能技术生成
AVAudioEngineConfigurationChangeNotification  
当音频引擎配置发生变化时。

AVAudioSessionInterruptionNotification  
发生音频中断发生。

AVAudioSessionMediaServicesWereLostNotification  
当媒体服务器终止时发布。

AVAudioSessionMediaServicesWereResetNotification  
当媒体服务器重新启动时发布。

AVAudioSessionRouteChangeNotification 当系统的音频路由发生变化时发布。 

AVAudioSessionSilenceSecondaryAudioHintNotification 当其他应用程序的主音频启动和停止时发布。 

AVAudioUnitComponentTagsDidChangeNotification 组件标签已更改。

 CKAccountChangedNotification 登录iCloud帐户的状态可能已更改时发出的通知。 

CLKComplicationServerActiveComplicationsDidChangeNotification 发表了一系列积极的并发症变化。 

CNContactStoreDidChangeNotification 当另一个CNContactStore发生更改时发布的通知。 

EKEventStoreChangedNotification 每当对Calendar数据库进行更改时,都会发布,包括添加,删除和更改事件或提醒。没有描述个人更改。当您收到此通知后,你应该重新获取所有EKEvent与EKReminder您访问,因为它们被认为是过时的对象。如果您正在积极地编辑一个事件,并且不想重新读取它,除非绝对有必要这样做,否则可以调用该refresh方法。如果该方法返回YES,则不需要重新获取该事件。

 HKUserPreferencesDidChangeNotification 当用户更改他或她的首选单位时通知观察员。 

HMCharacteristicPropertySupportsEventNotification 该特性支持使用由控制器建立的事件连接的通知。事件连接提供从附件到控制器的单向通信。 

NSBundleResourceRequestLowDiskSpaceNotification 在系统检测到可用磁盘空间量变得越来越小之后发布。通知将发布到默认通知中心。 

NSCalendarDayChangedNotification 系统日历,区域设置和时区确定系统日历日后发布。此通知不提供object。 

NSDidBecomeSingleThreadedNotification 未实现。 

NSExtensionHostDidBecomeActiveNotification 当扩展程序的主机应用程序从非活动状态移动到活动状态时发布。 

NSExtensionHostDidEnterBackgroundNotification 当分机的主机应用程序在后台开始运行时发布。

 NSExtensionHostWillEnterForegroundNotification 当扩展程序的主机应用程序开始在前台运行时发布。 

NSExtensionHostWillResignActiveNotification 当扩展程序的主机应用程序从活动状态移动到非活动状态时发布。

 NSFileHandleConnectionAcceptedNotification 当对象在两个进程之间建立一个套接字连接时,会发布此通知,为连接的一端创建一个对象,并通过将该对象放在字典中使其成为观察者。

 NSFileHandleNSFileHandleuserInfo NSFileHandleDataAvailableNotification 当文件句柄确定数据当前可用于在文件或通信通道中读取时,会发布此通知。 

NSFileHandleReadToEndOfFileCompletionNotification 当文件句柄读取文件中的所有数据时,或者如果通信通道,直到其他进程指示数据结束,则会发布此通知。 

NSHTTPCookieManagerAcceptPolicyChangedNotification 当实例的接受策略发生变化时,会发布此通知。

NSHTTPCookieStorage NSHTTPCookieManagerCookiesChangedNotification 当实例中存储的Cookie 已更改时,会发布此通知。

NSHTTPCookieStorage NSManagedObjectContextDidSaveNotification 每当托管对象上下文完成保存操作时发布。 

NSManagedObjectContextObjectsDidChangeNotification 当管理对象上下文中包含的对象的属性值发生变化时发布。 

NSManagedObjectContextWillSaveNotification 每当托管对象上下文即将执行保存操作时发布。 

NSMetadataQueryDidFinishGatheringNotification 当接收方完成查询的初始结果收集阶段时发布。

 NSMetadataQueryDidStartGatheringNotification 当接收者以查询的初始结果收集阶段开始时发布。 

NSMetadataQueryDidUpdateNotification 当查询的实时更新阶段接收者的结果发生变化时发布。 

NSMetadataQueryGatheringProgressNotification 作为接收者在查询的初始结果收集阶段收集结果时发布。 

NSPersistentStoreCoordinatorStoresDidChangeNotification 每当持久性存储被添加到永久存储协调器或从持久存储协调器中删除时,或当存储UUID更改时,都会发布。 

NSPersistentStoreCoordinatorStoresWillChangeNotification 发布在开放持久存储库列表之前发生变化。 

NSPersistentStoreCoordinatorWillRemoveStoreNotification 每当永久存储协调器中删除持久存储时,都会发布。 

NSProcessInfoPowerStateDidChangeNotification 当iOS设备的电源状态(低功耗模式被启用或禁用)发生变化。 

NSSystemClockDidChangeNotification 每当系统时钟更改时发布。这可以通过调用settimeofday()或更改“日期和时间首选项”面板中的值来启动。

 NSSystemTimeZoneDidChangeNotification 当时区更改时发送。 

NSThreadWillExitNotification 一个NSThread对象的帖子当它接收到该通知exit消息,该线程退出之前。调用接收此通知的Observer方法在退出的线程之前执行。 

NSURLCredentialStorageChangedNotification 当存储的凭据集更改时,会发布此通知。 

NSUbiquityIdentityDidChangeNotification 在iCloud(“无处不在”)身份发生变化之后发送。 

NSUndoManagerCheckpointNotification 每当对象打开或关闭撤消组(除了打开顶级组之外)和检查重做堆栈时,都会发布。

NSUndoManagercanRedo NSUndoManagerDidCloseUndoGroupNotification 发布后一个对象关闭一个撤消组,这在方法的实现中发生。

NSUndoManagerendUndoGrouping NSUndoManagerDidOpenUndoGroupNotification 每当一个对象打开一个撤消组,发生在该方法的实现中。

NSUndoManagerbeginUndoGrouping NSUndoManagerDidRedoChangeNotification 在对象执行重做操作()之后发布。

NSUndoManagerredo NSUndoManagerDidUndoChangeNotification 在对象执行撤消操作之后发布。

NSUndoManager NSUndoManagerWillCloseUndoGroupNotification 在一个对象关闭一个撤消组之前发生,这个方法发生在实现中。

NSUndoManagerendUndoGrouping NSUndoManagerWillRedoChangeNotification 在对象执行重做操作()之前发布。

NSUndoManagerredo NSUndoManagerWillUndoChangeNotification 在对象执行撤消操作之前发布。

NSUndoManager NSWillBecomeMultiThreadedNotification 当第一个线程与当前线程分离时发布。该NSThread课程信息此通知最多一次,第一次一个线程被分离使用或方法。后续调用这些方法不会发布此通知。这个通知的观察者在主线程中调用了它们的通知方法,而不是新线程。观察者通知方法总是在新线程开始执行之前执行。

detachNewThreadSelector:toTarget:withObject:start PKPassLibraryDidChangeNotification 发布后通过库已被更改。

 PKPassLibraryRemotePaymentPassesDidChangeNotification 当与当前iOS设备(例如Apple Watch)配对的设备添加或删除Apple Pay卡时发布。 

UIAccessibilityAnnouncementDidFinishNotification 系统读完通知后,由UIKit发表。 

UIAccessibilityElementFocusedNotification WKAudioFilePlayerItemDidPlayToEndTimeNotification 当项目成功播放到其结束时发布。 

WKAudioFilePlayerItemFailedToPlayToEndTimeNotification 当项目未能到达结束时发布。 

WKAudioFilePlayerItemTimeJumpedNotification 当项目当前时间不连续地更改时发布。 

ABPeoplePickerDisplayedPropertyDidChangeNotification 当记录列表中显示的属性更改时发布。 

ABPeoplePickerGroupSelectionDidChangeNotification 当组列表中的选择更改时发布。

 ABPeoplePickerNameSelectionDidChangeNotification 当名称列表中的选择更改时发布。 

ABPeoplePickerValueSelectionDidChangeNotification 当多值属性中的选择更改时发布。

 ACAccountStoreDidChangeNotification 当这个帐户存储管理的帐户在数据库中更改时发布。没有与此通知关联的字典。userInfo

AVAssetChapterMetadataGroupsDidChangeNotification 

AVAssetContainsFragmentsDidChangeNotification 

AVAssetDurationDidChangeNotification 

AVAssetMediaSelectionGroupsDidChangeNotification 

AVAssetTrackSegmentsDidChangeNotification 

AVAssetTrackTimeRangeDidChangeNotification 

AVAssetTrackTrackAssociationsDidChangeNotification 

AVAssetWasDefragmentedNotification 

AVCaptureDeviceWasConnectedNotification 当新设备可用时发布。 

AVCaptureDeviceWasDisconnectedNotification 当现有设备不可用时发布。 

AVCaptureInputPortFormatDescriptionDidChangeNotification 发布如果捕获输入端口的属性的值发生变化。

formatDescription AVCaptureSessionDidStartRunningNotification 当捕获会话开始时发布。 AVCaptureSessionDidStopRunningNotification 当捕获会话停止时发布。 

AVCaptureSessionRuntimeErrorNotification 在捕获会话期间发生错误时发布。 

AVFragmentedMovieContainsMovieFragmentsDidChangeNotification 

AVFragmentedMovieDurationDidChangeNotification 

AVFragmentedMovieTrackSegmentsDidChangeNotification 

AVFragmentedMovieTrackTimeRangeDidChangeNotification 

AVFragmentedMovieTrackTotalSampleDataLengthDidChangeNotification 

AVFragmentedMovieWasDefragmentedNotification 

AVPlayerItemDidPlayToEndTimeNotification 当项目播放到最后时间时发布。 

AVPlayerItemFailedToPlayToEndTimeNotification 当项目未能到达结束时发布。 

AVPlayerItemNewAccessLogEntryNotification 当添加新的访问日志条目时发布。

 AVPlayerItemNewErrorLogEntryNotification 当添加了新的错误日志条目时发布。

 AVPlayerItemPlaybackStalledNotification 发布时有些媒体没有及时到达继续播放。

 AVPlayerItemTimeJumpedNotification 当项目当前时间不连续地更改时发布。 

A
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值