You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Thanks for your sharing ^^
I have an ask about your last commit : "Add change notifications based on the Darwin notification center."
In DemoManager, there is this C function in an ObjC Class :
voidsharedDataChangedCallback(CFNotificationCenterRef postingCenter,
void * observer,
CFStringRef name,
voidconst * object,
CFDictionaryRef userInfo)
{
// Springboard from Darwin notification center to NSNotificationCenter.// Note that most of the received arguments are NULL with the Darwin notification center.
[[NSNotificationCenterdefaultCenter] postNotificationName:kDemoNotesSaveByAppNotificationobject:[DemoNoteManager sharedManager]];
}
Hi,
Thanks for your sharing ^^
I have an ask about your last commit : "Add change notifications based on the Darwin notification center."
In DemoManager, there is this C function in an ObjC Class :
In my Swift class, always this same C function :
When I call CFNotificationCenterAddObserver() in startObservingChangeNotifications() (in DemoManager) like that :
I have got this error :
My method
sharedDataChangedCallback
in Swift isn't correct but I don't know how to solve my issue. Could you help me about that ?Morever, you have never called "stopObservingChangeNotifications()" in DemoManager. In MastViewController, I think this code misses :
The text was updated successfully, but these errors were encountered: