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
Ensured dismiss is possible when a popover is being presented and the other way around: both wait until the other operation is complete before starting the new transition.
// Copyright (c) 2017 Werner IT Consultancy. All rights reserved.
4
+
//
5
+
6
+
#import<Foundation/Foundation.h>
7
+
8
+
@interfaceNSCondition (WEPopover)
9
+
10
+
/**
11
+
Waits in a background thread until the specified condition is broadcast/signalled and the specified predicate is true using appropriate thread safe locking techniques.
12
+
13
+
Using this method is assured that the wait stops when this object (self) is deallocated
14
+
15
+
Returns NO iff the predicate returned true without having to wait, YES if the wait actually had to occur.
Waits with a timeout, specify timeout <= 0.0 to wait indefinitely.
23
+
24
+
The completion block has a BOOL argument predicateResult which is true if the predicate evaluated to true within the timeout period and false otherwise.
25
+
26
+
Returns NO iff the predicate returned true without having to wait, YES if the wait actually had to occur.
0 commit comments