Coder Social home page Coder Social logo

Usage about desktoptoastane HOT 7 CLOSED

tuarua avatar tuarua commented on May 18, 2024
Usage

from desktoptoastane.

Comments (7)

tuarua avatar tuarua commented on May 18, 2024

What OS?
Are you using the provided example ?

Can you give the full error output

from desktoptoastane.

hferreira avatar hferreira commented on May 18, 2024

IntelliJ + Flex + macOS
This init function is not available

from desktoptoastane.

tuarua avatar tuarua commented on May 18, 2024

That's not a full error output. I need a screen grab or the full console output.
Are you using the provided example ?

If you are targeting macOS you need to use the sample code in StarlingRoot_OSX.as
Important lines are
37: use namespace osx;

45:dtANE.init();

from desktoptoastane.

hferreira avatar hferreira commented on May 18, 2024

use namespace osx did the trick !
Thank you.

  • But I want also support Windows 10, so I need to have 2 class, one for macOS toasts and another one for Windows 10 toasts and the begin of the application validate if is macOS or Windows ?
  • If I run the macOS code on Windows (or vice versa) it will throw an exception or the code will be ignored ?
  • If I run the Windows toast code on non supported OS like XP, it will throw an exception or the code will be ignored ?

from desktoptoastane.

tuarua avatar tuarua commented on May 18, 2024
  1. Yes, use different classes for each Win8, 10, OSX. Check which OS the user is using. The Toasts are so different on each platform I couldn't write a single API.
  2. It will throw an exception
  3. The app will crash. Only call the ANE functions on Win 8, 10 and OSX

from desktoptoastane.

hferreira avatar hferreira commented on May 18, 2024

Thank you very much for your great ANE.

My needs is for macOS and Windows 10 and I support Windows XP >= so I will write a class for macOS using your ANE with specific code and another one for Windows 10 using your ANE using specific code and one main class for Toast that receive a message.
If if macOS, will call the macOS class, if is Windows 10 will call Windows 10 class otherwise, will ignore the message.

My toast will be very, very generic and will be a message to the user without buttons.

Thank you,
Hugo.

from desktoptoastane.

tuarua avatar tuarua commented on May 18, 2024

No problems. Sounds like a good way to do it.
Yes, I added ALL the features on each platform, but most users will only want a message and image.

from desktoptoastane.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.