/* NSCustomImageRep.h Application Kit Copyright (c) 1994-2012, Apple Inc. All rights reserved. */ #import @interface NSCustomImageRep : NSImageRep { /*All instance variables are private*/ SEL _drawMethod; id _drawObject; unsigned int _reserved; } // Note that the block passed to the below method may be invoked whenever and on whatever thread the image itself is drawn on. Care should be taken to ensure that all state accessed within the drawingHandler block is done so in a thread safe manner. - (id)initWithSize:(NSSize)size flipped:(BOOL)drawingHandlerShouldBeCalledWithFlippedContext drawingHandler:(BOOL (^)(NSRect dstRect))drawingHandler NS_AVAILABLE_MAC(10_8); - (BOOL (^)(NSRect dstRect))drawingHandler NS_AVAILABLE_MAC(10_8); - (id)initWithDrawSelector:(SEL)aMethod delegate:(id)anObject; - (SEL)drawSelector; - (id)delegate; @end