I am writting unit test checking the format of a generated NSAttributedString.
I can extract the font like this:
if let font = attributedString.attributesAtIndex(0, effectiveRange: nil) as? NSFont {
...
}
Given this NSFont instance, how can I check if it is bold or not?