realbasic-plugins
[Top] [All Lists]

Re: Create Array of String from plugin?

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Create Array of String from plugin?
From: Jonathan Johnson <jonj at realsoftware dot com>
Date: Tue, 27 Feb 2007 07:45:28 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <1hu1p8k dot 68zmwxd4xuomM%support at monkeybreadsoftware dot de>
On Feb 24, 2007, at 8:20 AM, Christian Schmitz wrote:

> Hi,
>
> is there really no way to create an array object?
>
> Maybe we can call the Array function for the first string and then
> append for additional strings?
>
> Can someone from RS get us the declarations of those functions and how
> we pass arguments?

Unfortunately this isn't a simple task, as arrays have their own  
vtables. I can't think of a backwards and forwards compatible way to  
tell you how to accomplish this task, other than to not use our  
arrays and use your own class.

-Jon


-- 
Jonathan Johnson
jonj at realsoftware dot com
REAL Software, Inc.

REAL World 2007 Conference
May 9 - 11 in Austin, Texas
<http://www.realsoftware.com/realworld>

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

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


From  Tue 27 Feb 2007 17:39:22 +0100
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 49A541AABEEA; Tue, 27 Feb 2007 08:39:34 -0800 (PST)
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 DD0DF1AABEDC;
        Tue, 27 Feb 2007 08:39:29 -0800 (PST)
Received: from m.realsoftware.com (localhost [127.0.0.1])
        by lists.realsoftware.com (Postfix) with ESMTP id 86CFFF97E7;
        Tue, 27 Feb 2007 10:39:26 -0600 (CST)
X-Original-To: realbasic-plugins at lists dot realsoftware dot com
Delivered-To: realbasic-plugins at lists dot realsoftware dot com
Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de
        [80.67.18.14])
        by lists.realsoftware.com (Postfix) with ESMTP id 4FD18F97DB
        for <realbasic-plugins at lists dot realsoftware dot com>;
        Tue, 27 Feb 2007 10:39:24 -0600 (CST)
Received: (qmail 6235 invoked from network); 27 Feb 2007 16:39:22 -0000
Received: from unknown (HELO [192.168.1.80]) (363246 at [84 dot 175 dot 80 dot 
110])
        (envelope-sender <support at monkeybreadsoftware dot de>)
        by smtprelay02.ispgateway.de (qmail-ldap-1.03) with SMTP
        for <realbasic-plugins at lists dot realsoftware dot com>;
        27 Feb 2007 16:39:22 -0000
To: realbasic-plugins at lists dot realsoftware dot com (REALbasic Plugins)
In-Reply-To: <59525CFD-F701-4385-AC5C-831BD7989C15 at realsoftware dot com>
Subject: Re: How to do isa in plugins?
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Tue, 27 Feb 2007 17:39:22 +0100
Message-ID: <1hu781c dot 4eqnp81rn4n73M%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.8 (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

Jonathan Johnson <jonj at realsoftware dot com> wrote:

> On Feb 25, 2007, at 7:51 AM, Christian Schmitz wrote:
> =

> > Hi,
> >
> > how can I know that a variant (a REALobject) is a dictionary?
> =

> There is no built-in way to do it in the SDK, but the entrypoint is  =

> RuntimeObjectIsa. The first parameter is the object in question, and
> the second parameter is a REALclassRef. =


Thank you.
it seems not to work here.

> Please do file a feature request so that we can give you an official
> method to call, though.

Well, that's not the way it works. I need a way to check that for all RB
versions from 5.5 to today. So it doesn't help me if you add it to RB
2007r2.

YOu have an idea what is wrong here?

Boolean REALobjectISA(REALobject theObject, REALclassRef theClass)
{
        if (theObject)
        if (theClass)
                {
                static Boolean(*pREALobjectISA)(REALobject, =

                     REALclassRef) =3D nil;
                if (!pREALobjectISA)
                        pREALobjectISA =3D (Boolean(*)(REALobject, =

                      REALclassRef)) CallResolver("RuntimeObjectIsa");
                        =

                if (pREALobjectISA) =

                        return pREALobjectISA(theObject, theClass);
                        else
                        return false;
                }
        return false;
}


Gru=DF
Christian

-- =

Around twelve thousand functions in one REALbasic plug-in. =

The Monkeybread Software Realbasic Plugin v7.0. Now universal!
<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>