• 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: BT data (NSData *) question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BT data (NSData *) question


  • Subject: Re: BT data (NSData *) question
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 07 Jan 2014 10:54:52 -0800

On Jan 7, 2014, at 10:22 AM, Eric E. Dolecki <email@hidden> wrote:

> How can I adjust that if else statement properly to evaluate the data sent
> to the iOS application over BLE?
>
> I'm in unchartered territory here. Is it something like the below? I'm
> thinking no...

The code you put below looks fine, though I’d go with a switch statement instead; it’s cleaner.
No offense, but this looks really straightforward to me. What about it is confusing you? The if/else syntax? The byte value in the NSData? The button logic?

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: BT data (NSData *) question
      • From: "Eric E. Dolecki" <email@hidden>
References: 
 >BT data (NSData *) question (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: BT data (NSData *) question
  • Next by Date: Re: BT data (NSData *) question
  • Previous by thread: BT data (NSData *) question
  • Next by thread: Re: BT data (NSData *) question
  • Index(es):
    • Date
    • Thread