Best way to draw a gradient Objective-c Hello I have an NSGradient which I had hoped to drawin to the rect using the following code: