First #pragma mark does not display when displaying document items
| Originator: | jnjosh | ||
| Number: | rdar://13078175 | Date Originated: | 24-Jan-2013 09:55 AM |
| Status: | Closed / Duplicate 11602353 | Resolved: | |
| Product: | Developer Tools | Product Version: | Version 4.5.2 (4G2008a) |
| Classification: | Other Bug | Reproducible: | Yes |
Closed as a duplicate of: rdar://11602353
Summary:
In Xcode, when using #pragma marks to identify and organize sections of code, the first #pragma after the @implementation does not show in the Document Items menu (unless adding a { } after the @implementation).
Example Image: http://jsh.in/MOiN
Steps to Reproduce:
1. Create new project in Xcode
2. Open the AppDelegate.m class
3. Directly after the line, @implementation, add #pragma mark - Application Stuff
4. Open the Document Items Panel and view the items in the document
Example:
@implementation AppDelegate
#pragma mark - Application Stuff
@end
Expected Results:
The Document Items Panel should recognize the pragma mark added and display "Application Stuff" over the method names.
Actual Results:
The Document Items Panel does not show this first pragma at all.
Regression:
n/a
Notes:
Interestingly enough, if you append an empty ivar block after the @implementation, it works as expected:
@implementation AppDelegate { }
#pragma mark - Application Stuff
- (void)applicationDidFinishDoingThatThingItDoes:(NSDictionary *)options { ... }
@end
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!