iphonejudy macrumors 6502 Original poster Sep 12, 2008 301 1 Jun 5, 2009 #1 Code: NSColor * pixelsColor = [Bitmapimage colorAtX: pt.x y: pt.y]; I got error in NSColor "NSColor undeclared (first use in this function)"
Code: NSColor * pixelsColor = [Bitmapimage colorAtX: pt.x y: pt.y]; I got error in NSColor "NSColor undeclared (first use in this function)"
robbieduncan Moderator emeritus Jul 24, 2002 25,611 893 Harrogate Jun 5, 2009 #2 You are on the iPhone. Why are you not using UIColor?
K kainjow Moderator emeritus Jun 15, 2000 7,958 7 Jun 5, 2009 #3 If you look up a class in the documentation and it mentions "AppKit" then that means you can't use it on the iPhone.
If you look up a class in the documentation and it mentions "AppKit" then that means you can't use it on the iPhone.