Re: CFNotificationCenter documentation weirdness
Re: CFNotificationCenter documentation weirdness
- Subject: Re: CFNotificationCenter documentation weirdness
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 3 Jul 2001 19:24:22 +0200
On mardi, juillet 3, 2001, at 06:51 PM, Ali Ozer wrote:
In the CFNotificationCenter documentation (in the headers), there are
references to CFNotificationCenterSetSuspended(FALSE).
Does this function really exist ?
Yes, and to my knowledge it's supposed to be public. However, it's
unlikely you would need this, as the frameworks (both Carbon and Cocoa)
call it for you in the context of an application. Do you think you need
this for some reason?
Yes. I need to be able to receive a Notification immediately (my
application can be not the active one) and stop Notification observing
while I'm processing the first notification. Then I will resume
Notification observing.
I can already do this like that:
CFNotificationCenterRemoveObserver(center,observer,CFSTR("Stock to
Enterprise"), CFSTR("TRANSPORTATION"));
[((id) observer) showDialog:tRecord];
CFNotificationCenterAddObserver(center, observer, alertCallback,
CFSTR("Stock to Enterprise"), CFSTR("TRANSPORTATION"),
CFNotificationSuspensionBehaviorDeliverImmediately);
but I believe the purpose of CFNotificationCenterSetSuspended(FALSE) is
to do this without removing the Observer.