"Does not make sense to draw an image" - Warning after upgrade to MountainLion
Posted
by
Tom
on Stack Overflow
See other posts from Stack Overflow
or by Tom
Published on 2012-08-04T03:43:07Z
Indexed on
2012/12/12
11:04 UTC
Read the original article
Hit count: 890
warnings
|osx-mountain-lion
After I upgraded my programming machine to MountainLion and XCode to the new version I get this warning printed into the console everytime I run my application:
It does not make sense to draw an image when [NSGraphicsContext currentContext] is nil. This is a programming error. Break on void _NSWarnForDrawingImageWithNoCurrentContext() to debug. This will be logged only once. This may break in the future.
I'm not using an Image anywhere in my Application and I searched the whole project for an image but couldn't find one. Does anybody know what could cause this?
I'm using 2 nib files btw: One Popover and the Mainwindow. Neither of them contains an image.
Edit: I found the line when this appears:
[self.popover showRelativeToRect:[appDelegate.menulet frame]
ofView:appDelegate.menulet
preferredEdge:NSMinYEdge];
But none of those object is nil. Any suggestions?
Edit 2: The Menulet is a NSView subclass btw. So I'm passing a view.
© Stack Overflow or respective owner