Preheat oven to 350 degrees F.
Grease the bottom of an 8-inch or 9-inch square baking pan.
Using an electric mixer, cream together butter and sugar. Add eggs and vanilla extract and mix well.
In a separate bowl combine flour, salt, cinnamon, nutmeg, oats, and pecans.
Gradually add flour mixture to butter mixture. Mix until combined. Set aside.
In a large bowl, toss together all filling ingredients.
Spread about 1 ½ cups of the batter into the prepared pan. Top with filling. Drop remaining batter on top of apples.
Bake for 35-45 minutes, or until toothpick comes out clean. Cool on wire rack.
When bars have cooled, combine glaze ingredients in a small bowl. Drizzle glaze on top of bars. Allow glaze to set before cutting into squares.