nsimageview - NSImage resets when I change the size of the parent window

In my code I perform some transformations over the NSImageView, but when I start changing the window size, the NSImageView resets to its original image. I tried googling, but couldn't find out: what exactly is happening to it when I change the parent view and what are the possible workarounds? if let layer = angle.layer { layer.position = CGPoint(x: layer.frame.midX, y: layer.frame.midY) layer.anchorPoint = CGPoint(x: 0.5, y: 0.5) NSAnimationContext.beginGrouping() NSAnimationContext.current.allowsImplicitAnimation =...Read more

nsimageview - Adding both the title and image to an NSStatusItem

I've been trying to figure out how to add both text and an image to an NSStatusItem. Here is a mockup of what i'm trying to do:http://cl.ly/GjTOI've tried using the statusIetm.view and adding a subview, I've tried setting both the title and image property for fun even though I know that doesn't work. 'm not trying to add a a custom window the the Status Item, but the temperature and condition icon found in the first image. If anyone has any idea, I'd love to hear them.Thanks...Read more