NSImage imageNamed
NSImage imageNamed
- Subject: NSImage imageNamed
- From: Tom Waters <email@hidden>
- Date: Sat, 7 Jul 2001 21:15:34 -0700
Are images loaded with [NSImage imageNamed: @"image.jpg"] available to
be drawn right away?
I'm finding that in my NSView, i set an instance variable via
imageNamed, then in drawRect, I call compositeToPoint with that image,
and it doesn't show up until the second time drawRect is called in
response to some input, or a timer... then it draws perfectly.
In other tests, I've found a scanline of garbage pixels in the first
drawRect...
I'm suspecting that I'm smashing memory someplace, but I wanted to check
first.
Thanks.