Here is a code fragment
#import "MyCustomView.h"
@implementation MyCustomView
-(void) drawRect:(CGRect)rect {
NSLog(@"Help");
CGContextRef myContext = [[NSGraphicsContext // 1
currentContext]graphicsPort];
....
Then at 1, I encountered this error message:
NSGraphicsContext undeclared (first use in this function)
Do you have any idea what caused it? Any header file I should include?