realbasic-plugins
[Top] [All Lists]

Re: Execute methods

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Execute methods
From: Alfred Van Hoek <vanhoek at mac dot com>
Date: Sat, 18 Aug 2007 10:35:21 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <20070818131343 dot C18D47A817A at mail dot verex dot com>

> On Aug 18, 2007, at 09:14 UTC, Christian Sakowski wrote:
>
>> How i can execute Real Basic methods (by name) with parameters in the
>> plugin context? I need to execute a RB method as a callback method in
>> my plugin. --

You need to use dynamic access, use REALLoadGlobalMethod or  
REALLoadObjectMethod.

On Aug 18, 2007, at 9:13 AM, joe at strout dot net wrote:

>
> The proper way to do that is to define a class in your plugin, and
> within that class, define an event.  Then you can get a pointer to the
> event implementation and invoke it.  See the examples in the plugin  
> SDK
> for, er, examples.


Hmm, dynamic access to call the rb function is proper, and does not  
require the exposure of the callback to the user, given the desire to  
call the rb method in the plugin context.

Alfred


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


From  Sat 18 Aug 2007 20:12:25 +0200
Return-Path: <realbasic-plugins-bounces at lists dot realsoftware dot com>
X-Original-To: listarchive at realsoftware dot com
Delivered-To: listarchive at realsoftware dot com
Received: by xmail.realsoftware.com (Postfix, from userid 1037)
        id 08D4E3CDBF5C; Sat, 18 Aug 2007 11:13:16 -0700 (PDT)
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on 
        www.realsoftware.com
X-Spam-Level: 
X-Spam-Status: No, score=-2.5 required=4.5 tests=AWL,BAYES_00 autolearn=ham 
        version=3.1.1
Received: from lists.realsoftware.com (m.realsoftware.com [66.116.103.65])
        by xmail.realsoftware.com (Postfix) with ESMTP id B25573CDBF51;
        Sat, 18 Aug 2007 11:13:14 -0700 (PDT)
Received: from real-software-mini.local (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP id 08CBA57D8BA;
        Sat, 18 Aug 2007 13:13:03 -0500 (CDT)
X-Original-To: realbasic-plugins at lists dot realsoftware dot com
Delivered-To: realbasic-plugins at lists dot realsoftware dot com
Received: from smtprelay10.ispgateway.de (smtprelay10.ispgateway.de
        [80.67.29.24])
        by lists.realsoftware.com (Postfix) with ESMTP id DC27B57D8AF
        for <realbasic-plugins at lists dot realsoftware dot com>;
        Sat, 18 Aug 2007 13:12:58 -0500 (CDT)
Received: (qmail 19395 invoked from network); 18 Aug 2007 18:13:07 -0000
Received: from unknown (HELO [192.168.1.80]) (363246 at [84 dot 175 dot 92 dot 
170])
        (envelope-sender <support at monkeybreadsoftware dot de>)
        by smtprelay10.ispgateway.de (qmail-ldap-1.03) with SMTP
        for <realbasic-plugins at lists dot realsoftware dot com>;
        18 Aug 2007 18:13:07 -0000
To: realbasic-plugins at lists dot realsoftware dot com (REALbasic Plugins)
In-Reply-To: <AABA1F6F-A946-4895-B45B-EAAC1F3452AF at mac dot com>
Subject: Re: Execute methods
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Sat, 18 Aug 2007 20:12:25 +0200
Message-ID: <1i325et dot 1hzv1mr1p1uouwM%support at monkeybreadsoftware dot de>
MIME-Version: 1.0
Organization: Monkeybread Software Germany
X-Face: nrf3>{WQ6c&r+7 at e)"]0G60`-6ND^)I2mI%>)QGYa=9"=7jhd-g2|b3!>Al0+
        Ccb%xGQshhi|g at QU2$
User-Agent: MacSOUP/D-2.8 (Mac OS X version 10.4.9 (PPC))
X-BeenThere: realbasic-plugins at lists dot realsoftware dot com
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot 
com>
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: realbasic-plugins-bounces at lists dot realsoftware dot com
Errors-To: realbasic-plugins-bounces at lists dot realsoftware dot com

Alfred Van Hoek <vanhoek at mac dot com> wrote:

> Hmm, dynamic access to call the rb function is proper, and does not  =

> require the exposure of the callback to the user, given the desire to
> call the rb method in the plugin context.

Well, it is a design question.
I think defining events is easier from the plugin writer side, but doing
delegates (like in Cocoa) is easier for the user as they can use one
class as a delegate for a lot of things.

Gru=DF
Christian

-- =

Over 800 classes with 15000 functions in one REALbasic plug-in. =

The Monkeybread Software Realbasic Plugin v7.4. =


<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>
  • Execute methods, Christian Sakowski
    • Re: Execute methods, Alfred Van Hoek <=