• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: deallocation while connecting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: deallocation while connecting
      • From: Glenn Maynard <email@hidden>
References: 
 >Re: deallocation while connecting (From: Glenn Maynard <email@hidden>)

  • Prev by Date: Re: deallocation while connecting
  • Next by Date: Re: deallocation while connecting
  • Previous by thread: Re: deallocation while connecting
  • Next by thread: Re: deallocation while connecting
  • Index(es):
    • Date
    • Thread