|Feb 26, 2006, 01:55 PM||#1|
Notifications between Carbon and Cocoa
I'm writing a preference pane bundle in cocoa (using the xcode project defaults) and a carbon app that is supposed to communicate with it. However the notifications the cocoa app is posting either don't get sent or the carbon app is not registering correctly as an observer. I've hunted around on the web quite a bit and can't seem to see why this isn't working. The relevant bit in the cocoa panel bundle is :
[[NSNotificationCenter defaultCenter] postNotificationName: @"IMStatusPanelUpdate" object:nil userInfo:nil deliverImmediately:TRUE];
and the call in the carbon application that is supposed to set up the observer is:
center = CFNotificationCenterGetLocalCenter();
the updateMessages function prototype is copied right out of the example posted in the docs, so I'm assuming that it works. Also I tried adding the file "do_xnc_log" to /var/tmp which is supposed to log notifications, but I don't see anything there. Anyone have any ideas as to what is going wrong or a better way to debug notifications?
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Bodyguardz carbon fiber skin vs. Ghost Armor Carbon fiber skin||estestyler26||iPhone Accessories||4||May 7, 2013 09:18 PM|
|AP Mobile - double notifications - clusters of delayed notifications||Gomer||iOS 6||0||Apr 16, 2013 09:45 PM|
|Easily Enable Gmail Notifications In Notifications Centre||smoge||OS X 10.8 Mountain Lion||2||Jan 13, 2013 02:54 PM|
|How do I get app & system update notifications in Notifications Center?||inspirations365||OS X 10.8 Mountain Lion||5||Aug 3, 2012 07:35 AM|
All times are GMT -5. The time now is 11:30 AM.