Re: calling a function in one class from another

2010-08-10 Thread Graham Cox
On 10/08/2010, at 7:06 PM, Geoffrey Holden wrote: > I'm writing an app which communicates with a server. The protocol that it > uses is subject to change, so I'm writing a plugin to support that > particular protocol. When, in the future, the protocol changes (as it > probably will), I'll only

Re: calling a function in one class from another

2010-08-10 Thread Geoffrey Holden
I'm writing an app which communicates with a server. The protocol that it uses is subject to change, so I'm writing a plugin to support that particular protocol. When, in the future, the protocol changes (as it probably will), I'll only need to change the plugin and not the entire app. That's my

Re: calling a function in one class from another

2010-08-09 Thread Graham Cox
On 10/08/2010, at 7:13 AM, Geoffrey Holden wrote: > On a related note, how does this relate to plugin bundles? I've created a > plugin (using the tutorial in Aaron Hillegass's excellent book) - and it > works perfectly. I want to be able to respond to events in the plugin though > - would IB

Re: calling a function in one class from another

2010-08-09 Thread Geoffrey Holden
That's perfect, easy to understand, and it works too. You're an excellent teacher - and my apologies for not knowing the correct terms. I'm more used to plain old C (but I try to better myself). On a related note, how does this relate to plugin bundles? I've created a plugin (using the t

Re: calling a function in one class from another

2010-08-05 Thread Joanna Carter
Hi Geoffrey > If I have a class 'Foo' (containing the function 'Wabble'), which loads > another class 'Bar', is it possible a function within 'Bar' to execute the > 'Wabble' function within the calling class 'Foo'? Your first problem is that you are talking about classes without thinking about i

Re: calling a function in one class from another

2010-08-05 Thread Quincey Morris
On Aug 5, 2010, at 07:42, Geoffrey Holden wrote: > If I have a class 'Foo' (containing the function 'Wabble'), which loads > another class 'Bar', is it possible a function within 'Bar' to execute the > 'Wabble' function within the calling class 'Foo'? You repeatedly say "function", but do you mea

Re: calling a function in one class from another

2010-08-05 Thread Graham Cox
On 06/08/2010, at 12:42 AM, Geoffrey Holden wrote: > If I have a class 'Foo' (containing the function 'Wabble'), which loads > another class 'Bar', is it possible a function within 'Bar' to execute the > 'Wabble' function within the calling class 'Foo'? Yes, within Bar, you just have [theFoo Wab