matt-curtis / Fluid-for-Sketch

[Sketch Plugin] Sketch-flavored Auto Layout-like Constraints
2.38k stars 73 forks source link

toolbar very interesting #131

Closed wave2588 closed 7 years ago

wave2588 commented 7 years ago

I find the toolbar in the plugin very interesting. How did you make it?? Have any articles?

matt-curtis commented 7 years ago

The toolbar is just an NSWindow with a transparent background. The main difference is that it's attached as a 'child window' to the topmost Sketch document window (see -[NSWindow addChildWindow:ordered:]), which allows for it to constantly stay just above the current document you're working on.