2012-02-03 5 views

답변

3

CFNotificationCenter를 사용하여 dylib에서 응용 프로그램으로 Darwin 알림을 전송할 수 있습니다. 사용자 데이터를 전달할 수는 없지만 최소한 앱에 알릴 수는 있습니다. 그 이상에 관한 것 https://developer.apple.com/library/IOs/#documentation/CoreFoundation/Reference/CFNotificationCenterRef/Reference/reference.html

Example of registering and posting: 


CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(),NULL, &NotificationReceivedCallback,(CFStringRef)MyNotificationString, NULL, CFNotificationSuspensionBehaviorCoalesce); 
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter() , CFSTR(MyNotificationString), NULL, NULL, YES); 
관련 문제