Xcode 6.4: Removing an @IBInspectable property from code when it has a custom value set in IB results in runtime error.

Originator:aralbalkan
Number:rdar://21887817 Date Originated:18-Jul-2015 03:50 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 6.4 (6E35b)
Classification:Enhancement Reproducible:Always
 
Summary:

Removing an @IBInspectable property from code when it has a custom value set in IB results in runtime error.

Steps to Reproduce:

1. Create an @IBInspectable property in your NSView class
2. In IB, set a custom value for it
3. Remove the property from your class
4. Run the app.

Expected Results:

The custom value should have been removed from the XIB when I deleted the @IBInspectable code from my class. The app should just work.

Actual Results:

A runtime error is returned. e.g., 

2015-07-18 15:47:15.111 Badge[77438:1818852] Failed to set (alignmentToParentName) user defined inspected property on (Badge.BadgeView): [<Badge.BadgeView 0x10070f460> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key alignmentToParentName.

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!