nsview
NSView mouse events after adding subview
After I add a subview to NSView, my mouse events respond to the area of NSView minus the addedSubVIew. How can I avoid that? I want it 开发者_如何学Goto respond on all of the superview.[详细]
2023-02-23 22:19 分类:问答NSTextView copy & paste problem
In my application I have an NSTextView. If I want to select some text using the keyboard, I press Command+c, which is supposed to select the text, then Command+v which should paste the selected text.[详细]
2023-02-22 13:34 分类:问答Stopping transparent drawing going all the way through NSViews
I\'m doing some simple drawing in my NSView\'s drawRect with code like this [[NSColor colorWithCalibratedWhite:0.250 alpha:0.700] set];[详细]
2023-02-22 09:17 分类:问答Saving an NSView to a png file?
I am making a simple program that creates game cards for a game I play. I have sent it out to some friend开发者_运维知识库s of mine for testing, but they really want it to save images, not just print[详细]
2023-02-21 12:46 分类:问答How to draw over a subview of NSView
I\'m trying to draw at the top of my NSView which has some subviews. In fact I\'m trying to reproduce the connection line style of Interface Builder. Here is the code I\'m using for the moment:[详细]
2023-02-20 19:07 分类:问答Why acceptsFirstMouse not invoked in my custom nsview?
Now i have a borderless window which i handle move and resize myself,but 开发者_开发知识库the window cannot be moved or resized when the window is deactive,after some reserach,i subclass a nsview and[详细]
2023-02-18 15:21 分类:问答Using the same NIB with multiple View Controllers
Basically I want to use a nib file and view controller as a template for a view that I plan to create a number of times.开发者_如何学Python This nib will have a couple of labels and custom views.[详细]
2023-02-18 11:14 分类:问答How to tell what's causing drawRect to be called?
I\'ve got my cus开发者_运维知识库tom NSView with a bunch of custom buttons in it, the buttons are added as a subView in the NSView\'s drawRect method.[详细]
2023-02-17 21:54 分类:问答NSView initialization: -init: vs. -awakeFromNib:
I have a simple class MyView inherited from NSView and instance variable NSImage * image; in it. Class functionality is to draw image on the view.[详细]
2023-02-17 21:28 分类:问答Adding subview to view with a PDFView as a subview
I have a controller view. This controller has a PDFView as a subview and another subview which is like a cont开发者_开发问答roller to the pdf.[详细]
2023-02-17 03:15 分类:问答