Last month I've been asked to beta-test an utility app.

The developer sent me a promo code which I entered into the promo code field in iTunes. Then it downloaded the app on my Mac and I was able to sync it to my device. At that time the app was not listed on the App Store, but it definitely came from the App Store.

I haven't sent him my device UDID or anything like that upfront, so it's not an Ad-Hoc thing.

Is there a way of sending these promo codes when an app is in "pending for developer release" status? Or must I approve the app and then quickly put it into "Not For Sale" status before it appears on the App Store? What's the trick?

Question-closers: This is so programming related you wouldn't believe me if I told you *how* much. Because without an answer to this question, it will be much harder to build great apps. Having a way of sending friends promo codes to check out a beta is VERY convenient and improves the development process.