Can't really comment on #1, but here are the others:

2) I defined some variables outside the function definitions (just above the execute method, to be exact), and there were problems when I loaded more than one instance of the plugin - they appeared to be sharing the variables.
Could someone explain what was happening here?

These are global variables. They are not class-instance variables, so they're shared among all patches of the same type. Creating a new patch in the editor makes new Instance Vars, but not new global var (because then globals wouldn't really be global, but instance too ... which wouldn't make any sense). There are times were you'll actually want globals in a patch, shared across all patches of the same type.

3) Just curious what the range is for a "double" - what's the biggest number that can be represented by a double? What happens if you add a positive value to that number?

There may be a constant like MAX_DOUBLE or something that'll have that value. Floating point numbers store their values in a way different from integers, so depending on the sizes added, nothing may happen (it'll round the small addition to zero). For example, if the double is 4,000,000,000,000, and you add +.00000001, it may still end up being 4,000,000,000,000 (you may need larger numbers to observe this behaviour, this is just a conceptual example).

4) This is actually a follow-on to question 2 above. I moved the variable definitions to the header file, inside
@interface SuperLFOPlugIn : QCPlugIn
{
}

Is this the correct way to declare instance-specific variables? Is there a better way?


This is completely how it's done. You did it perfectly. :) (These are where the Instance Vars I was talking about above go)

--
[ christopher wright ]
[EMAIL PROTECTED]
http://kineme.net/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to