I’m just building my Cocoa app for distribution on mac app store, but this it the forst time I have used ‘build and archive’. Now, for all of my cgrectmake, it gives me a build error saying:
error: incompatible type for argument 1 of 'setFrame:'
The code always affected is:
image.frame = cgrectmake(x, y, width, height);
This dosent happen in normal debug. What is going on?
By the way I’m using XCode 4 if that makes a difference
Presuming you are building for the Mac App Store (like you say), then you are using an NSImageView. Your problem is that NSImageView takes an NSRect to set the frame, which can be created with
NSMakeRect(CGFloat x, CGFloat y, CGFloat w, CGFloat h)