开发者

When clicked NSImageView, Application can't move

开发者 https://www.devze.com 2023-01-29 01:18 出处:网络
I create NSToolbar and added NSView on the NSToolbar. NSView Included NSImageView. When clicked NSImageView or NSView in NSToolbar, I can\'t moved application.

I create NSToolbar and added NSView on the NSToolbar. NSView Included NSImageView.

When clicked NSImageView or NSView in NSToolbar, I can't moved application. How开发者_如何学C can I move application when I clicked NSView (or NSImageView) on the NSToolbar.


The question isn't very clear to me, but if you want to move the window with the mouse you could subclass the NSView (or NSImageView) and add

- (BOOL)mouseDownCanMoveWindow {
    return YES;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消