A firm apple works best when making the homemade apple filling.  You want the apple to be great tasting but also cooks down some and does not turn to mush.  My favorite apple is honey crisp but fuji and gala works good also.