Apple patent shows accessory that transforms an iphone or ipad into a macbook