Thursday, 15 April 2010

swift - Xcode 6 code editor erratic behaviour -



swift - Xcode 6 code editor erratic behaviour -

as of experience troubles xcode's 6 code editor, conclude in rapid alter of focus in editing window, jumping different place in same file, while editing text. how started. lately editor refuses scroll , down, hangs, stops displaying line numbers, or other text altogether. can create stop misbehave? solutions found far concerning older versions of xcode , not work me.

update: thought optionals. there point in code this:

tile?.position.vertical >= 2

i presumed comparing optional value, messed compiler , supposed compare nil. subsequent testing proved me wrong. notices in 1 of enumerations:

enum figure: int { case king = 0 case pawn = 1 case bishop = 3 case knight = 5 case rook = 7 case queen = 9 func piecename() -> string { switch self { case .pawn: homecoming "pawn" case .king: homecoming "king" case .bishop: homecoming "bishop" case .knight: homecoming "knight" case .rook: homecoming "rook" case .queen: homecoming "queen" } } }

notice how nicely code gets coloured in switch statement, pawn, king , on part of same enumeration. well, not in case. re-create of xcode "symbol not found" when command-click 1 of case values in function. so, think culprit troubles , if yes, how can prepare it?

equalise font sizes , remove italics , bolds in colour theme.

the reply issue discovered in apple developer forums. unfortunately, cannot find thread there. said behaviour experiencing result of colour theme using having different sized fonts , combination of italics , bolds. thing there no more comments after guy's post, confirming or disproving solution. me, did thing. , @kirby todd has confirmed it, posting answer.

xcode swift enums editor

No comments:

Post a Comment