Xcode8: NSData quicklook shows prime number of bytes per row
| Originator: | markd | ||
| Number: | rdar://27778378 | Date Originated: | 8/9/2016 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Version 8.0 beta 5 (8S193k) |
| Classification: | Usability/UI | Reproducible: | Always |
Summary: See attached screen shot. Project also attached. I set a breakpoint as shown. Ran the program. Did a quicklook at the data to see how the bytes looked for my packed 4-byte structure. The quicklook display defaults to 11 bytes per row. eleven. A prime number. I don't see how that's a useful default. A more useful value would be something even, so I could see the repeating patterns in the data. A power of two would be great. Most hexdump utilities (c.f. man hexdump -C) use a stride of 16 bytes. But eleven? I can't.. even... uh... (I use all black for my syntax coloring due to my vision correction. SourceKit has not crashed) Steps to Reproduce: Expected Results: Actual Results: Version: Version 8.0 beta 5 (8S193k) 10.11.5 (15F34) Notes: It's really not that big a deal - just make data in eleven-multiples, but when these kinds of things happen day-in, day-out, it's just another heavy-sigh death-of-a-thousand-cuts that makes using Xcode unpleasant. Configuration: Attachments: 'MandelSwift.zip' and 'Screen Shot 2016-08-09 at 8.57.56 PM.png' were successfully uploaded. I was going to say "it was ok in prior versions", but I found a screen shot from some of our training materials that has a _thirteen_ byte stride. (attached) One of the advantages of an even / power of two number is for easier mental calculations between interesting islands of bytes. "oh, this is four rows different, therefore it's 64 bytes away" because we marinate in powers of two all the time. Now we have to count the number of bytes across (say 13), and four rows away is (4 * 3 is two, carry the 1, 2*2 is four, plus the carry) 52 bytes.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!