One approach sometimes taken (although I suspect not by Apple) is that if one retailer discounts the product the manufacturer supports other retailers to match the discount. This is illegal in the EU as it acts as a deterrent to any discounting as it will get the initial discounter no benefit (market share still ends up shared but they unlike their competitors have to pay the cost of the discount).
Despite this Apple maintain tight control of the prices probably by thin retailer margins with money made up by accessory sales and probably some support/discount/payments for retailers who display Apple products according to their guidelines. It is allowable to offer different terms for different types of retailer e.g. dedicated Apple store, store with dedicated area with demo units complying to guidelines or online although it should be non-discriminatory in that any company that sets up to comply with the terms should be allowed.