Nstextfield setstringvalue not updating properly dating application for dating my daughter

nstextfield setstringvalue not updating properly-1nstextfield setstringvalue not updating properly-50nstextfield setstringvalue not updating properly-81

I needed to get the rectangle that my string would fill when drawn.

A short Google search led me here: SO: NSString size With Attributes: Content Rect.

If the text field contains text, the text displays in the label as it should.

If I place the line of code above just before the code that reads and outputs the text field, then instead of the text box showing that text box, the text box text just disappears as if I had over written the contents of the field with an empty string. Suggestionsn would be welcome; the almost identical expression I am using on the label works fine: I am definitely using a Text Field.

In this case the error is that the correct Member key is in fact "name".