Re: deallocation while connecting
Re: deallocation while connecting
- Subject: Re: deallocation while connecting
- From: Etan Kissling <email@hidden>
- Date: Fri, 14 Dec 2012 07:40:06 +0000
- Thread-topic: deallocation while connecting
Glenn,
Even with ARC you have to make sure that the peripheral is retained. ARC does nothing magically, it only inserts automatic retain / release calls where it knows that they are usually required.
So, the difference between working with ARC and without ARC is only that you don't have to write retain and release explicitly. However, you still have to keep a reference to the peripheral in an instance variable to make sure ARC knows it has to retain
it.
Etan
On 14.12.2012, at 07:29, "Glenn Maynard" < email@hidden> wrote:
On Thu, Oct 18, 2012 at 1:12 AM, Steve Toh
<email@hidden> wrote:
Disregard, I didn't retain the returned peripherals!
ARC is your friend :)
--
Glenn Maynard
_______________________________________________
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
|
_______________________________________________
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