iOS custom blocks using objective-c

ctceismc

  • Posts: 7
Is it possible to create custom blocks using objective-c that others can use? Will anything similar be available for Android using java? Is there documentation available on creating custom blocks or calling external libraries on iOS?

Jon

  • *
  • Posts: 17516
The custom block function works the same across all platforms - are you finding that it doesn't work in iOS?

It's documented here
http://www.stencyl.com/help/viewArticle/106

External library support will to iOS in the future, though you can always take the Xcode project and add the libraries in after the fact.

ctceismc

  • Posts: 7
What I am really talking about is creating new block types that call custom Objective-C libraries through the normal drag and drop interface. For instance, will developers be able to make a block from an open source library that reads a QR Code and returns the text that was decoded? Or any other external library for that matter so that Stencyl app creators don't have to work at the Objective-C level - only the custom block/library creator needs to work at that level? Imagine how fast the functionality of Stencyl would be grow if Objective-C programmers could create and share new types of blocks. Suddenly Stencyl could become a general purpose graphical app development environment like App Inventor rather than just a game development tool.

Jon

  • *
  • Posts: 17516
Once you're able to link in external libraries from within StencylWorks, this will be possible. We already allow this for our Flash apps.

ctceismc

  • Posts: 7
Very cool!
How far in the future do you expect that capability to become available? weeks? months? years?

Jon

  • *
  • Posts: 17516
I would say later this year - it's not particularly difficult to do, but we already have a lot on our plate right now and want to finish the things we have to do first.

What I am really talking about is creating new block types that call custom Objective-C libraries through the normal drag and drop interface. For instance, will developers be able to make a block from an open source library that reads a QR Code and returns the text that was decoded? Or any other external library for that matter so that Stencyl app creators don't have to work at the Objective-C level - only the custom block/library creator needs to work at that level? Imagine how fast the functionality of Stencyl would be grow if Objective-C programmers could create and share new types of blocks. Suddenly Stencyl could become a general purpose graphical app development environment like App Inventor rather than just a game development tool.

Google online and you will find barcode generating related open source, but I don't think you can get barcode reading material, with which you can read a QR Code and return the text encoded. Most of them are commercial as this is more complicated than generating technology.

« Last Edit: June 02, 2015, 07:59:43 am by sherleywilson00 »