nsview
How should I design displaying a dynamic map? (Coordinates + Lines)
So I want to have a view (NSView, NSOpenGLView, something CG related?) which basically displays a map.Such as:[详细]
2023-03-22 19:08 分类:问答drawRect not getting called when needed under OS X
I am using a window that uses a subclass of NSView.Part of it is drawn when the program starts, another part needs to be drawn when the user clicks on a button in another window.The code for the other[详细]
2023-03-22 06:45 分类:问答Mouse events on NSView with ellipse as content
I create a subclass of NSView that draw a red filled circle and i\'d like to intercept mouse click that came into Red Circle only and not in transparent pixels.[详细]
2023-03-22 03:54 分类:问答Cocoa NSView animation
I have a view that is being shown within a larger view and will always remain in the same place. When some user input is provided, a second view will appear below the first one. want this to be a some[详细]
2023-03-22 01:40 分类:问答Programmatically resize NSView
I have a main view that is supposed to display several subviews. Those subviews are directly above and below one another (in the z axis) and will drop down (in the y axis) and move up using this code:[详细]
2023-03-21 00:48 分类:问答Cocoa moving overlapping NSViews
I have several views inside one main view. Those views are all behind one another so that only the top one is currently seen. What I would like to do is, upon some particular user input, have one of t[详细]
2023-03-20 13:51 分类:问答XCode Design - How to create a map?
So I basically have a bunch of routes (think of 3D positions) and I\'d like to draw them in a view. I haven\'t actually done anything w/graphics before and was curious how I should even start thinkin[详细]
2023-03-20 10:27 分类:问答NSView and loading subviews on the fly
To get a sense of what I\'m doing without posting pages of code... I have an NSOperation that I\'m using to process files as they are added to a folder. In that NSOperation I\'m using the NSNotificati[详细]
2023-03-19 15:41 分类:问答custom NSView crash when changing the background color
I have a custom NSView object with a retained property named bgColor. I override the setter method by defining setBgColor method:[详细]
2023-03-19 12:39 分类:问答Mouse Events Bleeding Through NSView
I have an NSView which covers its parent window\'s content view. This view has a click event handler which removes it from the content view. Inside this view, I have another view. When I drag the mous[详细]
2023-03-18 18:33 分类:问答