Permalink
Browse files

documenting -cw_ARCPerformSelector: and -cw_performSelector:withObjec…

…t:onGCDQueue:
  • Loading branch information...
1 parent 0357f17 commit 3667ff9b9ff5cee6f67257f2f1779ce7958fd180 @Machx committed Jul 23, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 Source/NSObjectAdditions.h
View
@@ -63,8 +63,20 @@
*/
-(void)cw_performSelector:(SEL)selector withObject:(id)obj onQueue:(NSOperationQueue *)queue;
+/**
+ Creates a NSInvocation operation with the receiver as the target and the passed in selector and
+ adds the operation to the passed in dispatch_queue_t.
+ */
-(void)cw_performSelector:(SEL)selector withObject:(id)obj onGCDQueue:(dispatch_queue_t)queue;
+/**
+ Calls -performSelector but directs clang to ignore a potential leak
+
+ This tells clang to ignore a potential leak when calling -performSelector
+ just for the duration of this one call.
+
+ @param selector the selector to be called.
+ */
-(void)cw_ARCPerformSelector:(SEL)selector;
@end

0 comments on commit 3667ff9

Please sign in to comment.