Option for setting up custom bindings within IB

Originator:satsumac
Number:rdar://10099319 Date Originated:2011/11/09
Status: Resolved:
Product:Developer Tools Product Version:Xcode 4.x
Classification:Enhancement Reproducible:n/a
 
Summary:
Just as there is a way to set custom control attributes in Interface Builder via "User Defined Runtime Attributes" in Xcode 4.x there should be a way to do the same with custom bindings.

With the shameful lack of support for IBPlugins in Xcode 4.x there is even more need for custom bindings.

In the "Bindings" inspector panel there should be buttons for adding/removing custom bindings.

Custom bindings would provide an interface for choosing:
- bindingKey (NSTextfield)
- object (NSComboBox)
- foreignKey (NSTextfield)
- options (NSTableView with 1 column of NSComboBoxCells showing available options)
- transformer (NSValueTransformer)

…corresponding to the arguments of:
"- (void)bind:(NSString *)binding toObject:(id)observableController withKeyPath:(NSString *)keyPath options:(NSDictionary *)options"
http://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Protocols/NSKeyValueBindingCreation_Protocol/Reference/Reference.html#//apple_ref/occ/instm/NSObject/bind:toObject:withKeyPath:options:

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!