I am trying to make Pong for Mac. For the ball bounce code, I am trying to access the ball’s center. The ball is a NSImageView. For iOS programming, I can just access a UIImageView’s center by calling
ball.center = ...;
How can I do this with an NSImageView. Sorry if this is dumb, I’m new to Cocoa programming.
You could add a simple category like: