Re: What rect does NSTextFieldCell use to draw its contents?

2012-12-14 Thread jonat...@mugginsoft.com
On 13 Dec 2012, at 23:17, Kyle Sluder k...@ksluder.com wrote: Since I'm comparing the string-drawing methods to NSTextFieldCell drawing, according to this documentation there should be no difference. In my test case I compared the cells rendering with an NSTextField configured as a label.

Re: What rect does NSTextFieldCell use to draw its contents?

2012-12-14 Thread Kyle Sluder
On Dec 14, 2012, at 2:42 AM, jonat...@mugginsoft.com jonat...@mugginsoft.com wrote: On 13 Dec 2012, at 23:17, Kyle Sluder k...@ksluder.com wrote: Since I'm comparing the string-drawing methods to NSTextFieldCell drawing, according to this documentation there should be no difference. In

Re: What rect does NSTextFieldCell use to draw its contents?

2012-12-13 Thread Kyle Sluder
On Tue, Dec 11, 2012, at 02:17 AM, jonat...@mugginsoft.com wrote: On 10 Dec 2012, at 19:13, Kyle Sluder k...@ksluder.com wrote: It's my understanding that the intent of NSStringDrawing is to provide the exact same drawing as NSTextFieldCell. Is that stated anywhere? I swear it was

Re: What rect does NSTextFieldCell use to draw its contents?

2012-12-11 Thread jonat...@mugginsoft.com
On 10 Dec 2012, at 19:13, Kyle Sluder k...@ksluder.com wrote: It's my understanding that the intent of NSStringDrawing is to provide the exact same drawing as NSTextFieldCell. Is that stated anywhere? But the following code produces text that is offset by 2pt to the left from a standard

What rect does NSTextFieldCell use to draw its contents?

2012-12-10 Thread Kyle Sluder
It's my understanding that the intent of NSStringDrawing is to provide the exact same drawing as NSTextFieldCell. But the following code produces text that is offset by 2pt to the left from a standard NSTextFieldCell: @implementation MyTextFieldCell /* : NSTextFieldCell */ -