"// MARK: -" behaves incorrectly in Xcode 4
| Originator: | m.hanauska | ||
| Number: | rdar://11405148 | Date Originated: | 08-May-2012 |
| Status: | Duplicate of 11036527 (Closed) | Resolved: | |
| Product: | Developer Tools | Product Version: | 4.x |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: In Xcode 3 the pattern "// MARK: -" solely added a separator to the list of declaration/definition items. In Xcode 4 it also adds a separator, but an *empty* "MARK:" entry is displayed on top of it. Steps to Reproduce: 1. Create a new Xcode project 2. Select a source file 3. Place "// MARK: -" anywhere inside the file. 4. Open the item list. Expected Results: A separator is displayed and nothing else. Actual Results: A separator is displayed with an empty mark on top of it. Regression: n/a Notes: n/a
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!
#pragma only works in sources processed by the C/C++ pre-processor. How would you use it in a Perl, Python, Ruby or Bash script, how would you use it in Swift? "MARK:" in comments works with all languages! Well, except for the bug above.
try to use
#pragma mark
#pragma mark -
#pragma mark - some text