Post

Replies

Boosts

Views

Activity

Mirror for static members?
Consider:struct TestStruct { let a = 3 static let b = 4 } let t = TestStruct() let m = Mirror(reflecting: t) for c in m.children { let label = c.label let value = c.value }The playground correctly shows "a" and "3".But what about b?How can I access the "type members" as opposed to the instance members?
3
3
2.6k
Sep ’15
Xcode Editor Move Selection up or down key-binding broken in 7.2?
Just migrated to 7.2 from 7.1.1I use, many times a day, the "move selection around" editor command, which moves the one to many selected lines up or down. When I just tried in 7.2, Xcode just beep'd at me.So I went to key bindings and noticed that my override, that I had setup long ago and was carried over from one Xcode to the next just wasn't there anymore.What's worse, I just cannot recall, now that I try hard to think of it, what was the sequence that my "muscle memory" remembers so well, but the rest of my brain draws a blank on.Note to mention that the wording of the key commands is a bit ambiguous: am I moving the "selection" or am I moving a "paragraph", and what is a "paragraph" as far as ObjC or Swift code is concerned?I kind of recall I was using command-option-up-arrow forMove Paragraph Backwardand command-option-down-arrow forMove Paragraph Forwardbut when I assign them and try to use them, Xcode just beeps at me and acts as if said commands where just plain up or down arrows.What am I missing?
2
0
4.4k
Dec ’15