I want something like this: (light part, ignore background)

How can I draw this using Cocoa? In drawRect:? I don’t know how to draw.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
NSBezierPath:This should get you started, it draws a red triangle on a 100×100 sized view. You’d usually calculate the coordinates dynamically, based on the view’s size, instead of using hard-coded values of course.