In my UI I have an NSTextField (used as a label). This text field's string value changes dynamically. I'd like to know when its string value is too long to display. I've configured the text field to truncate its contents:
myLabel.lineBreakMode = NSLineBreakMode.ByTruncatingTail
which works fine but I need to know when truncation occurs because in that situation I need to do something else in my UI.