Inspectables should sort in file counterpart order for category headers

Originator:mxn
Number:rdar://20421800 Date Originated:2015-04-03
Status:Open Resolved:
Product:Developer Tools Product Version:6D554n
Classification:UI/Usability Reproducible:Always
 
Summary:
If a category header (with a plus sign in its name) declares additional inspectables on the class, those inspectables appear first in the Attributes inspector, before the inspectables that are declared in the main @interface. Headers should not be sorted in strict ASCII order; consideration should be given to delimiters such as _ and +. Observe how the Assistant editor arranges counterparts so that the main header is always first.

Steps to Reproduce:
1. In a file “Building.h”, declare a class Building to have the inspectable properties “houseNumber” and “streetName”.
2. In a separate file “Building+NYCAdditions.h”, declare a category Buliding (Flat) to have the additional inspectable properties “suiteNumber” and “numberOfRooms”.
3. Insert an instance of Building into a storyboard and switch to the Attributes inspector.

Expected Results:
The “House Number” and “Street Name” fields should come before the “Suite Number” and “Number Of Rooms” fields. “Building+NYCAdditions.h” should be considered to come after “Building.h”, just as it does in the Counterparts section of the assistant menu. (Also note the poor capitalization of “Of”.)

Actual Results:
The “House Number” and “Street Name” fields come after the “Suite Number” and “Number Of Rooms” fields, because “Building+NYCAdditions.h” comes before “Building.h” in ASCII sort order.

Version:
Xcode 6.3b3 (6D554n)
OS X 10.10.2 (14C109)

Notes:

Configuration:
Xcode 6.3b3 (6D554n)
OS X 10.10.2 (14C109) 
Xcode 6.3b3 (6D554n)
OS X 10.10.2 (14C109)

Attachments:

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!