Xojo Conferences
XDCMay2019MiamiUSA

SharedProperty (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: get Cstring
Next thread: My email


macosx and unix paths   -   GOLD
  SharedProperty   -   Alfred Van Hoek
   Re: SharedProperty   -   Christian Schmitz
   Re: SharedProperty   -   Alfred Van Hoek
   Re: SharedProperty   -   Christian Schmitz
   Re: SharedProperty   -   Christian Schmitz
    Re: SharedProperty   -   Alfred Van Hoek

SharedProperty
Date: 01.05.13 14:13 (Wed, 01 May 2013 07:13:08 -0600)
From: Alfred Van Hoek
I know how to use shared methods in a class declaration. However, while you can use shared properties in REALStudio, I am just wondering how you should set up a shared property in a struct. What is the limitation?

- Alfred Van Hoek
<email address removed>
http://vanhoekplugins.com

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

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

Re: SharedProperty
Date: 01.05.13 19:21 (Wed, 1 May 2013 20:21:32 +0200)
From: Christian Schmitz

Am 01.05.2013 um 16:21 schrieb Alfred Van Hoek <<email address removed>>:

>
> On May 1, 2013, at 7:59 AM, Christian Schmitz wrote:
>
>> a shared property in a plugin does not use FieldOffset() with data structure.
>>
>> Simply provide getters and setters.
>
> I forgive your ignorance. You can use FieldOffset on any struct not part of the ClassData struct. Anyway, I figured it out why a shared prop can be highly functional. I leave it up to you to figure ;-)

I do use them myself in the plugins.

FieldOffset can be used with any structure. But with a shared property declaration you should not use FieldOffset.

Greetings
Christian

Re: SharedProperty
Date: 01.05.13 15:21 (Wed, 01 May 2013 08:21:45 -0600)
From: Alfred Van Hoek

On May 1, 2013, at 7:59 AM, Christian Schmitz wrote:

> a shared property in a plugin does not use FieldOffset() with data structure.
>
> Simply provide getters and setters.

I forgive your ignorance. You can use FieldOffset on any struct not part of the ClassData struct. Anyway, I figured it out why a shared prop can be highly functional. I leave it up to you to figure ;-)

- Alfred Van Hoek
<email address removed>
http://vanhoekplugins.com

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

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

Re: SharedProperty
Date: 01.05.13 14:59 (Wed, 1 May 2013 15:59:16 +0200)
From: Christian Schmitz

Am 01.05.2013 um 15:37 schrieb Alfred Van Hoek <<email address removed>>:

> I know, but you do know that in RealStudio you can provide an integer, or whatever as a shared property, right? So somehow, you should be able to do this in a plugin. The struct I mentioned is the ClassData struct you normally can access with a standard getter or setter. But because we are dealing with a shared entity, this struct is not available because their is not an instance of the class created...

a shared property in a plugin does not use FieldOffset() with data structure.

Simply provide getters and setters.

Greetings
Christian

Re: SharedProperty
Date: 01.05.13 14:26 (Wed, 1 May 2013 15:26:15 +0200)
From: Christian Schmitz

Am 01.05.2013 um 15:13 schrieb Alfred Van Hoek <<email address removed>>:

> I know how to use shared methods in a class declaration. However, while you can use shared properties in REALStudio, I am just wondering how you should set up a shared property in a struct. What is the limitation?
>

shared properties work in classes, not in structures.

Greetings
Christian

Re: SharedProperty
Date: 01.05.13 14:37 (Wed, 01 May 2013 07:37:58 -0600)
From: Alfred Van Hoek


On May 1, 2013, at 7:26 AM, Christian Schmitz <<email address removed>> wrote:

> Am 01.05.2013 um 15:13 schrieb Alfred Van Hoek <<email address removed>>:
>
>> I know how to use shared methods in a class declaration. However, while you can use shared properties in REALStudio, I am just wondering how you should set up a shared property in a struct. What is the limitation?
>
> shared properties work in classes, not in structures.

I know, but you do know that in RealStudio you can provide an integer, or whatever as a shared property, right? So somehow, you should be able to do this in a plugin. The struct I mentioned is the ClassData struct you normally can access with a standard getter or setter. But because we are dealing with a shared entity, this struct is not available because their is not an instance of the class created...

- Alfred Van Hoek
<email address removed>

<email address removed>
http://vanhoekplugins.com

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

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