سؤال

I am trying to reproduce the windows snapping/merge functionnality of the last Tweetbot for Mac. If you have 2 windows and you bring one close to the other, they snap and are merge in a single window.

Do you know how I can do this?

Thanks

هل كانت مفيدة؟

المحلول

Indragie Karunaratne (@Indragie) created an NSWindow subclass to do just that.

https://github.com/indragiek/INDockableWindow

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top