- [NSTextField intrinsicContentSize] siempre tiene un ancho indefinido

Estoy tirando de los pelos aquí. Tengo un NSTextField creado en un xib que tiene un intrinsicContentSize ajustado a su stringValue.

Si creo un campo de texto programáticamente así:

    _textfield = [[NSTextField alloc] initWithFrame:CGRectZero];
    _textfield.translatesAutoresizingMaskIntoConstraints = NO;
    _textfield.alignment = NSCenterTextAlignment;
    _textfield.drawsBackground = NO;
    [_textfield setBordered:NO];
    _textfiled.stringValue = @"Test"

Es intrinsicContentSize es siempre(width=-1, height=16)

He intentado llamar a invalidateIntrinsicContentSize pero sin éxito ...

¿Cómo se puede hacer que funcione intrinsicContentSize de NSTextField? Debo estar haciendo algo diferente al de xib, simplemente no puedo entender qué.

Respuestas a la pregunta(2)

Su respuesta a la pregunta