blob: 360218c7a6175bf75cc94483754ca253a1f5a48c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{ Parsed from Foundation.framework NSNotificationQueue.h }
{$ifdef TYPES}
type
NSNotificationQueuePtr = ^NSNotificationQueue;
{$endif}
{$ifdef TYPES}
type
NSPostingStyle = NSUInteger;
NSPostingStylePtr = ^NSPostingStyle;
const
NSPostWhenIdle = 1;
NSPostASAP = 2;
NSPostNow = 3;
type
NSNotificationCoalescing = NSUInteger;
NSNotificationCoalescingPtr = ^NSNotificationCoalescing;
const
NSNotificationNoCoalescing = 0;
NSNotificationCoalescingOnName = 1;
NSNotificationCoalescingOnSender = 2;
{$endif}
{$ifdef CLASSES}
type
NSNotificationQueue = objcclass external (NSObject)
private
_notificationCenter: id;
_asapQueue: id;
_asapObs: id;
_idleQueue: id;
_idleObs: id;
public
class function defaultQueue: NSNotificationQueue; message 'defaultQueue';
function initWithNotificationCenter (notificationCenter: NSNotificationCenter): instancetype; message 'initWithNotificationCenter:'; { NS_DESIGNATED_INITIALIZER }
procedure enqueueNotification_postingStyle (notification: NSNotification; postingStyle: NSPostingStyle); message 'enqueueNotification:postingStyle:';
procedure enqueueNotification_postingStyle_coalesceMask_forModes (notification: NSNotification; postingStyle: NSPostingStyle; coalesceMask: NSUInteger; modes: NSArray); message 'enqueueNotification:postingStyle:coalesceMask:forModes:';
procedure dequeueNotificationsMatching_coalesceMask (notification: NSNotification; coalesceMask: NSUInteger); message 'dequeueNotificationsMatching:coalesceMask:';
end;
{$endif}
|