Side stepping
• Chris Liscio
• Chris Liscio
In an attempt to "walk away" from the problem for a while, I have moved on to creating the classes that will model the different types of loudspeaker enclosures. It's amazing how when you have an object-oriented language at your fingertips, creativity really starts to flow and you start extracting some interesting reuse patterns out of certain concepts.</p><p>I'm will attempt to use Objective-C's protocol construct as much as possible. I can implement functions like getResponseAtFrequency for simulated enclosures, measured enclosures, speaker drivers, etc and have my graphing class just pull data out of the objects that follow the protocol. That way, I can pass various objects to the graphing classes and, as long as they follow the protocol, the graph will "know how to display them".</p><p>I'm just flying through the process of throwing down class specifications now. I don't know what it is, but I find it so much easier to create and change Objective-C classes than C++ classes. Perhaps it's just me…</p><p></p>