NSVisualEffectView

  1. 3 weeks ago

    I try to use NSVisualEffectView...
    I use this cose:

    dim WindowEffectView as new NSVisualEffectView( 0, 0, 220, 500 )

    It always returns the error:

    Can't find a type with this name

    Do you know why and how I can fix?

    These would be the docs, but I'm far from an expert on how to write the declares since I rely on Christian's plugins.

    https://developer.apple.com/documentation/appkit/nsvisualeffectview

    You might want to poke around the MacOSLib open source project. I did see the NSVisualEffectView class in there, but I haven't tried to work with it.

    https://github.com/macoslib/macoslib

  2. Jared F

    is not verified Oct 2 Pre-Release Testers, Xojo Pro Milwaukee, WI

    NSVisualEffectView is not a native Xojo class.

    You need to use a plugin such as Monkeybread http://www.monkeybreadsoftware.net/class-nsvisualeffectviewmbs.shtml or try to write the proper declares to access the native library.

  3. Edited 3 weeks ago by Gabriele M

    Maybe you tell "NSVisualEffectViewMBS", I can't buy this plugin :(

    Where I can take a guide of cocoa framework?

  4. Jared F

    is not verified Oct 2 Pre-Release Testers, Xojo Pro Answer Milwaukee, WI

    These would be the docs, but I'm far from an expert on how to write the declares since I rely on Christian's plugins.

    https://developer.apple.com/documentation/appkit/nsvisualeffectview

    You might want to poke around the MacOSLib open source project. I did see the NSVisualEffectView class in there, but I haven't tried to work with it.

    https://github.com/macoslib/macoslib

  5. Thank you Jared! I'll try.

  6. Dave S

    Oct 2 San Diego, California USA

    @Jared F I'm far from an expert on how to write the declares since I rely on Christian's plugins.

    while plugs-in have there place for some people, this points to the second reason I dislike them.

    if you rely on fast-food you never learn to cook

  7. Jared F

    is not verified Oct 2 Pre-Release Testers, Xojo Pro Milwaukee, WI
    Edited 3 weeks ago by Jared F

    I'm a single developer working for an enterprise.

    I (and the people that rely on my applications) value speed, reliability, and expert support over learning the intricacies of building my own library of declares that get the job done, but are not fully functional.

    I'm not sure why you felt the need to call that out in this thread.

    Edit: Also, Xojo's own tagline is "Rapid app development"
    We could all be programming in Objective C, Swift, or C#, but we chose Xojo for a reason.
    Plugins are fully within that programming philosophy.

  8. Dave S

    Oct 2 San Diego, California USA

    Jared, I was not "calling you out", I simply used a statement you made to support an opinion of mine, that Plug-ins may have a place for some people (such as yourself and other), but in the long run too much dependance on them creates code that may be unsustainable at some future date. My statement had nothing to do with you personally whatsoever, and I apologize if you believe it did.

  9. Edwin v

    Oct 2 Pre-Release Testers, Xojo Pro The Netherlands

    @Dave S if you rely on fast-food you never learn to cook

    Dave, I stole (read: borrowed) your quote for my Facebook page. Brilliant!

  10. Dave S

    Oct 2 San Diego, California USA

    @Edwin vden ;Akker Dave, I stole (read: borrowed) your quote for my Facebook page. Brilliant!

    LOL... I made that up on the fly.... my original thought had been "TV Dinners" instead of "Fast Food", but then I figured most people could not relate to a "TV Dinner" anymore

  11. Tim J

    Oct 2 Pre-Release Testers, Xojo Pro Wailea Maui, HI, USA

    On the flip side of this, I believe that plugins are quite a bit more than fast food. You still need to write code and design your apps. You don't need to raise chickens to know how to use an egg in 100 different meals.

    With fast food, you're buying whatever they sell and consuming it as is.

  12. shao s

    is not verified Oct 2 Sudbury, Ontario, Canada

    I come here to get programming help, not to get hunger pangs :P

  13. Sam R

    Oct 3 Pre-Release Testers, Xojo Pro Hengchun, Pingtung, Taiwan

    If you use the RetinaKit, NSVisualEffectView and NSLabel are included.

  14. Markus W

    Oct 3 #JeSuisHuman Europe (Germany)...

    If you have time and the ability then by all means do things yourself. Build your house, your car, your food, do your own maintenance, etc.

    But I didn't want to be a builder, and plumber, and gardener. I wanted to be a Molecular Biologist.

    So I do rely on builders, and plumbers, and gardeners.

    And I appreciate their work very much.

  15. 2 weeks ago

    Tanner L

    is not verified Oct 9 Pre-Release Testers, Xojo Pro Toronto, Canada

    And to ensure this thread remains wildly off-topic...

    Carl's thoughts

  16. shao s

    is not verified Oct 12 Sudbury, Ontario, Canada

    @Markus W But I didn't want to be a builder, and plumber, and gardener. I wanted to be a Molecular Biologist.

    Your parents must be disappointed in you :P

or Sign Up to reply!