How to draw a text outside rect in cocoa

Posted by Kishore on Stack Overflow See other posts from Stack Overflow or by Kishore
Published on 2010-06-15T05:31:01Z Indexed on 2010/06/15 5:32 UTC
Read the original article Hit count: 210

Filed under:

Hi,

I am trying to construct a graph using cocoa.To display the points on x -axis and y- axis i used methods called drawATPoint and drawinRect which allows to draw apoint inside rect not out side .

So please mention if there is any solution to display the points.I am using the following code.

NSTextStorage *textStorage = [[NsTextStorage alloc]initWithString:@"0.0"]; [textStorage drawAtPoint:NSMakePoint(0,0)];

© Stack Overflow or respective owner

Related posts about cocoa