Interface builder support for custom object properties
| Originator: | amorya | ||
| Number: | rdar://12690302 | Date Originated: | |
| Status: | Resolved: | ||
| Product: | Developer Tools | Product Version: | Xcode 4.5.1 (4G1004) |
| Classification: | Enhancement | Reproducible: | Always |
In response to Matthew Firlik's message on the developer forums regarding Interface Builder plugins in Xcode 4: "Xcode 4.x does not provide public API for extending the IDE's functionality, nor does it have an analog to the Interface Builder 3.x plug-in API. The Interface Builder plug-in API provided a variety of integration points -- adding objects to the library, providing custom inspectors, defining nesting and embedding rules, customizing the document content when objects were added or manipulated, etc. For those interested in replacement functionality, it would be very useful to have descriptions of your specific interests and use cases: they are exceptionally valuable as we assess our future plans and consider features and designs to prioritize." I'd like to suggest the following: In the header file for a class, you can already tag things with IBOutlet. Let us also tag things with IBProperty, and anything tagged as such displays in the property inspector in Xcode. You could limit it to plist types and it'd still be useful. (Additionally, some form of enum that gave you a popup menu would be really useful.) This would have the advantage that you wouldn't need to build a custom IB plugin: the header file alone would do. I would love it if a similar thing for exposing custom bindings (IBBindableProperty maybe?) could be used. Both of these could take additional parameters, such as @property (nonatomic, strong) IBProperty(min=0,max=1) NSNumber *myProperty;.
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!
description
it would be very useful to have descriptions. IRFP250N