Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 14 in printed book and digital formats -- plus a one-year subscription so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

PDF:

Feature

Article

Issue: 7.5 (July/August 2009)
Author: Thomas Tempelmann (Revised by Marc Zeedar)
Article Description: No description available.
Article Length (in bytes): 14,230
Starting Page Number: 27
RBD Number: 7511
Resource File(s):

Download Icon 7511 project.zip Updated: Wednesday, July 1, 2009 at 1:23 PM

Related Web Link(s):

http://www.tempel.org/PluginArchitectureWithREALbasic
http://www.tempel.org/ftp/pub/REALbasic/EventDrivenScript.zip
http://www.tempel.org/ftp/pub/REALbasic/RbScript_201.pdf

Known Limitations: None

Excerpt of article text...

This article will give some ideas on how to use REALbasic's RBScript feature to add plugins to a REALbasic application. A plugin is hereby defined as a program that can be added to the already-built application and executed at the app's discretion.

An example

In the next paragraphs I will suggest some ideas based on the following example: design for a search app similar to Apple's "Spotlight" feature.

The app shall be a tool to search for text in many files. While the app has hard-coded routines to search for text in a single file, it wants to allow plugins to convert binary files into text files where appropriate. Imagine documents from applications such as Word (.doc), Acrobat (.pdf), and even REALbasic (.rbp), which, when opened in a plain text editor, show a lot of gibberish that you don't want to have searched. Instead, you want it all readable.

Hence, the plugins for this search app will basically function like this: the app will pass each file (before looking at it) to the plugins so that the plugins can convert the file to text if necessary. Each plugin gets to look at the file and decide whether it can understand it. If it can, it returns the readable text, which the app then searches for the contents the user wants to find.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com