Hi,
I’m trying to resize a label to match it’s content (text) using sizeToFit.
From what Apple describes, every NSControl (NSTextField, Label, …) responds to the sizeToFit method :
[quote]Resizes the receivers frame so that it is the minimum size needed to contain its cell
Declared in
NSControl.h
[/quote]
The problem is
With Xcode, it simply works.
[label sizeToFit]
But with Xojo, it does not.
label.NSTextFieldMBS.sizeToFit