I'm new to Mac programming, but not to iPhone programming. I've got an NSButton with an image on it, and since I was unable to find any commands to scale it to the buttons size, I call [object.image setSize:] to make it the size of the button so it fits properly.
However later on, I get another instance of the image from [NSImage imageNamed:] and use [image setSize:] on that image (which is the same image, but not the same instance of it), which changes the size of the image on the button.
I'm quite confused to be honest. What's happening here?
However later on, I get another instance of the image from [NSImage imageNamed:] and use [image setSize:] on that image (which is the same image, but not the same instance of it), which changes the size of the image on the button.
I'm quite confused to be honest. What's happening here?