Your questions specifically on how to use OpenGL and CoreGraphics are too broad to answer in the context of this email. However, neither are necessary to draw small rectangular boxes. Have a look first of all at geometry.h, to get a feel for NSRect structs and all you can do with them. Also look in Xcode's documentation for NSRectFill() and have al look at other functions on that page. Also very important to doing this is NSColor. Finally, if you want to get fancy drawing boxes with rounded corners, have a look at NSBezierPath. Keep in mind, none of this touches CoreGraphics or OpenGL in the slightest. One more solution is to use a CALayer object. Using this alone, you can create a very lightweight object with all these properties, including the rounded borders and a background color of your choice (and more), with all the other goodness of CoreAnimation. The good thing about CALayer is that they don't need to be redrawn all the time, saving CPU cycles. This is important on the iPhone. Hope this helps!
On Sun, Oct 12, 2008 at 11:36 AM, J. Todd Slack < [EMAIL PROTECTED]> wrote: > Hi All, > > I need to draw some very small rectangular boxes on screen (iphone) for a > small play app that I am working on to gain some experience. I must say I > have never needed to custom draw shapes, etc (except back about 5 years ago > on Windows). > > Letters will go in each box. > > Do I use Open-GL? Core Graphics? > > I would appreciate thoughts and how I might accomplish this. > > Thanks everyone! > > -Jason > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/steven.degutis%40gmail.com > > This email sent to [EMAIL PROTECTED] > -- Steven Degutis _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]