Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Darkroom

Guest
Original poster
Dec 15, 2006
2,445
0
Montréal, Canada
i've noticed since the early versions of iPhone SDK that the Core Graphics framework is automatically linked to new projects along with UIKit and Foundation.

just now i've realized that one of my classes which uses Core Graphics will still function (in the simulator, haven't tried on device) even without #import <CoreGraphics/CoreGraphics.h>.

Code:
//stuff like this

CGImageRef imageRef = [image CGImage];
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();	
NSUInteger imageRefHeight = CGImageGetHeight(imageRef);

shouldn't the compiler be freaking out?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.