How to align the NSTextField(Label) always centered in a NSView?
===

I have a `NSTextField`(Label) in a `NSView`. Value in the label changes dynamically. I would like to set the Frame of the TextField always centered with respect to view.Is there any way to calculate the pixels or size occupied by the text in the texfield so that I can increase the size of the textfield to fit the text and change the origin so that textiles is always centered.