• 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
matching brace not found
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

matching brace not found


  • Subject: matching brace not found
  • From: "Jan E. Schotsman" <email@hidden>
  • Date: Sat, 25 Jul 2015 20:45:08 +0200

Consider this piece of code:

if !track.formatDescriptions.isEmpty
	{
let firstFormatDescription = (track.formatDescriptions as! [CMFormatDescription])[0] let asbd = CMAudioFormatDescriptionGetStreamBasicDescription (firstFormatDescription)
	numSndChannels += Int( asbd.memory.mChannelsPerFrame )
	}

If I click on the first curly brace the editor beeps (the code compiles). If I remove "as! [CMFormatDescription]" the closing curly brace *is* selected.
Look like a minor bug.

Xcode 6.3, Swift 1.2

Jan E.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: Refactoring a #define definition
  • Next by Date: Re: Refactoring a #define definition
  • Previous by thread: Re: Refactoring a #define definition
  • Next by thread: Xcode 7 complains about bundle IDs
  • Index(es):
    • Date
    • Thread