How can I read a environmental variable from in Cocoa?
===

How could I read an environmental variable that a user has set?

I'm new to desktop development on the Mac (cocoa), and I am building a little tool that I can use to access amazon's s3 service.

I set my environmental varialbe in my .bash_profile, but I want this to work regardless of where the user entered it (.bashrc, .bash_profile or .profile etc).