After I upgrade my programming machine to MountainLion and Xcode to a new version, I get this warning printed in the console every time I launch my application:
It makes no sense to draw an image when [NSGraphicsContext currentContext] is zero. This is a programming error. Break on void _NSWarnForDrawingImageWithNoCurrentContext () for debugging. This will be recorded only once. It may break in the future.
I do not use the image anywhere in my application, and I searched the entire project for the image, but could not find it. Does anyone know what might cause this?
I use 2 nib btw files: One Popover and Mainwindow. None of them contain images.
Edit: I found a line when this appears:
[self.popover showRelativeToRect:[appDelegate.menulet frame]
ofView:appDelegate.menulet
preferredEdge:NSMinYEdge];
But none of these objects is equal to zero. Any suggestions?
Edit 2: Menulet is a subclass of NSView. Therefore, I am viewing the presentation.
source
share