Re: Peripheral dealloced while connecting under ARC?
Re: Peripheral dealloced while connecting under ARC?
- Subject: Re: Peripheral dealloced while connecting under ARC?
- From: Rick Mann <email@hidden>
- Date: Fri, 08 Mar 2013 18:50:21 -0800
On Mar 8, 2013, at 18:35 , Roland King <email@hidden> wrote:
> You have to keep a reference to the peripheral if you want to connect to it.
Thanks, Roland. Any idea why? It seems like, in passing the peripheral to the connect call, the system should keep a reference until the callback (did connect or did fail) returns. Basically, so long as I've started an operation on an object in Core Bluetooth, it should be retained until the callbacks complete.
Otherwise it adds a burden on me to keep track of it, and let go of it if I determine it's not the one I want.
--
Rick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden