Superimposing NSViews over an SKView
Superimposing NSViews over an SKView
- Subject: Superimposing NSViews over an SKView
- From: Charles Srstka <email@hidden>
- Date: Wed, 30 Oct 2013 21:28:12 -0500
In Apple's Sprite Kit documentation, it claims:
"Because Sprite Kit content is rendered by a view object, you can combine this view with other views in the view hierarchy. For example, you can use standard button controls and place them above your Sprite Kit view. Or, you can add interactivity to sprites to implement your own buttons; the choice is up to you."
https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/SpriteKit_PG/GettingStarted/GettingStarted.html
However, I have so far had no success getting NSButtons and other NSView-based views to appear on top of an SKView. I've tried making the view a subview of the SKView, making it an overlapping sibling view, building it programmatically, putting it in the XIB — in all cases, the NSView-based object is not drawn.
Am I missing something here? Is there some flag somewhere that I need to set for this to work? Or is the documentation here incorrect?
Thanks,
Charles
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden