realbasic-plugins
[Top] [All Lists]

Re: Overloading a Constructor

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Overloading a Constructor
From: Phil M <phil at mobleybros dot com>
Date: Sat, 22 Jul 2006 07:50:31 -0400
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <1hiujoy dot syxsec18mziq3M%support at monkeybreadsoftware dot de> <943F2C42-8E51-40A8-A7D8-A261FFC0B8CC at mobleybros dot com> <D73DF16D-4CE1-445A-921E-496312F5769D at great-white-software dot com>
On Jul 21, 2006, at 8:52 PM, Norman Palardy wrote:

I think all they are saying is to create several regular method definitions for your class. Just name them "Constructor"

Well, one of the other things that I am confused about is declaring the method. Does the name of the method in C have to be the same as the "description" written in the REALmethodDefinition? (all examples I have seen have shown the same name). I tried naming my C methods "Constructor" but I had some sort of compile error.

A constructor in RB is just a method anyways

I currently am trying to have three constructors (though I would rather have two with a default value). The problem is that the constructor that I really want to use takes a Picture as a parameter and all attempts to use this constructor have crashed.

It is all so confusing... like Christian said:

"Over time you will learn that the RB SDK is a lot of guessing and trying."

Yeah. It is not like the rest of the REALbasic experience, that is for sure. Does anyone have a list of open-source plugins that I can take a look at the source code? Other than that, all I can do is take a look through the archives and ask questions to this list.


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

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>