I'm not really sure what living in an apartment has to do with having to declaw. I have two cats, lived in an apartment for 8 years with them, and never considered declawing. I just trim their claws on a regular basis.
There are a number of products out there to discourage cats from scratching where they shouldn't and can help the cat realize that the scratching post is the only acceptable place to do so. If it continues to be a problem and the cat is adapting well to being an indoor cat, there is a surgery that cuts the ligament that allows them to extend the claws which is considered more humane than traditional declawing. The claws are still there, but the cat can't flex them out.
Depending on the cat's personality, it may or may not take to being inside very well. There are a couple cats at my barn that I think would be quite happy inside, and others that I know would absolutely hate it.