When clicked NSImageView, Application can't move
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;
}
加载中,请稍侯......
精彩评论