Yeah, I should probably have explained the structure. 

After years of objective-c this is my first time with both swift and 
storyboards, so…that may well be where the problem lies.

Anyway, it goes like this, the ViewController instantiates an instance of my 
subclassed NSTextView.

The subclassed textview is just a bog-standard textview save for enabling 
-mouseMoved(with event: NSEvent).

The superAttributedString is also declared in the ViewController as a global var

My updateUI func is supposed to switch to the main thread, clear the subclassed 
textview’s textstorage of any attributes, then add/append the 
superAttributedString.

It seems to be when the superAttributedString is added that I get the warnings. 
I don’t know why they only appear in 10.13 and not 10.11 or 10.12. At first, I 
was tempted to put it down to a 10.13 bug, but it’s true that I AM seeing odd 
behaviour in 10.13 (the attributed string is supposed to bold certain parts of 
the text, but one time in ten or so in 10.13 it just goes gung-ho and bolds the 
lot).

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to