macoscocoainterface-buildernsvisualeffectview

Make the viewController's view a NSVisualEffectsView


I create a new viewController on storyboard. I want that viewController's view to shown thru the window. So, as far as I understood, I have to transform that view to a NSVisualEffects view.

How do I do that using interface builder?

I already have a lot of objects on that view added using interface builder, so, it will be nice to solve that using interface builder.

thanks


Solution

  • 1) You can delete the view in the outline view and then add a visual effects view as the view controller's view.

    2) Add a effects view as the subview of the view.

    3) Change the class type of the view controller's view in the inspector window.

    Options one and two will let you see the effects view in Xcode. I would recommend using option 3.