He, since I use my images as instance variables (cause I need to draw them all very often) in this way (in my NSView):
@implementation BeatView
- (id)initWithFrame:(NSRect)frame{
self = [super initWithFrame:frame];
if (self) {
bpm=160;
mbpm=0;
NSImage *bz_BG = [NSImage imageNamed:@"mw_bg01.png"];
NSImage *bz_PaAc = [NSImage imageNamed:@"pattactive.png"];
NSImage *bz_PaIa = [NSImage imageNamed:@"pattinactive.png"];
}
return self;
}
and then drawn:
- (void)drawRect:(NSRect)dirtyRect{
NSPoint imagePos = NSMakePoint(0, 0);
[bz_BG dissolveToPoint:imagePos fraction:1.0];
}
there are no errors (only warnings that the image variables are not used). When running, no image will be drawn. What am I doing wrong here? Thanks...