cocoa: fixed seekbar pattern phase calculation