开发者

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;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜