JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::FunctionNotificationCenterObserver Class Reference

#include <juce_PerScreenDisplayLinks_mac.h>

Collaboration diagram for juce::FunctionNotificationCenterObserver:

Classes

struct  ObserverClass
 

Public Member Functions

 FunctionNotificationCenterObserver (NSNotificationName notificationName, id objectToObserve, std::function< void()> callback)
 

Static Private Member Functions

static SEL getSelector ()
 

Private Attributes

ScopedNotificationCenterObserver observer
 
NSUniquePtr< NSObject > observerObject
 
std::function< void()> onNotification
 

Constructor & Destructor Documentation

◆ FunctionNotificationCenterObserver()

juce::FunctionNotificationCenterObserver::FunctionNotificationCenterObserver ( NSNotificationName  notificationName,
id  objectToObserve,
std::function< void()>  callback 
)
inline

Member Function Documentation

◆ getSelector()

static SEL juce::FunctionNotificationCenterObserver::getSelector ( )
inlinestaticprivate

Member Data Documentation

◆ observer

ScopedNotificationCenterObserver juce::FunctionNotificationCenterObserver::observer
private

◆ observerObject

NSUniquePtr<NSObject> juce::FunctionNotificationCenterObserver::observerObject
private
Initial value:
{
[this]
{
static ObserverClass observerClass;
auto* result = observerClass.createInstance();
object_setInstanceVariable (result, "owner", this);
return result;
}()
}

◆ onNotification

std::function<void()> juce::FunctionNotificationCenterObserver::onNotification
private

The documentation for this class was generated from the following file: