I have an NSCollectionView, which I'm binding to a collection of strings.
The view that I'm using for my NSCollectionViewItem is very simple, it simply contains an NSTextField.
NSView - NSTextField
The length of the strings is variable. Is there any way to adjust the size of my text field / view to account for the length of the strings?
For smaller strings, the text is nicely centered in the view. But for longer strings, the text gets truncated.
If it helps, all of the strings within the collection will be approximately the same length.