• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Superimposing NSViews over an SKView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Superimposing NSViews over an SKView
      • From: Eric Wing <email@hidden>
  • Prev by Date: 10.9: Some Async Saving is ON even if you say NO?
  • Next by Date: Re: 10.9: Some Async Saving is ON even if you say NO?
  • Previous by thread: Re: 10.9: Some Async Saving is ON even if you say NO?
  • Next by thread: Re: Superimposing NSViews over an SKView
  • Index(es):
    • Date
    • Thread