Software patents are only a problem if the company decides to exercise them. If you are just building an application that will not see widespread use (i.e. in the vein of Microsoft Office), and you will not bother them too much from a competitive standpoint, they may not bother you..
However, Apple apparently views the dock as their "distinguishing feature," with respect to their OS, so they might start getting protective about it. Apple has a long history of being proprietary, so this may be their way of saying, "We're different."
These kinds of docks have been around for awhile, and the software industry hasn't imploded on them yet. Apple could have issued patent pending warnings against other users of the patent prior to this, but I have heard nothing about that.
As with anything else legal, you can choose to accept the risk, or you can choose to do something else. The usual IANAL disclaimers apply. I agree with David Thornley; it might be worthwhile consulting someone who actually knows something about these things.