I’m new to Cocoa and kinda trying to create a timer.
I’m trying to move the NSImage inside the NSImageview up or down based on a timer.
Here is how I load the image inside the NSImageview:
NSRect fnRect = NSMakeRect(10 + (wheelWidth / 4) - 5, 30, numbersWidth, wheelHeight);
fnImageView = [[NSImageView alloc] initWithFrame:fnRect];
[fnImageView setImageScaling:NSScaleNone];
[fnImageView setImage:numbers];
[self addSubview:fnImageView];
If anyone can point me to a tutorial or give me a hint about how to do it I would appreciate it.
Thanks.
Inside a
NSImageViewisn’t aNSImage. It’s just used to show theNSImage.What you want to do is probably a
NSImageViewinside aNSViewwhere you could move it around.NSViewNSImageViewin itNSImageViewaround.