#56 accepted
Romain Cosentino

BWStyledTextField causes ibtool to fail

Reported by Romain Cosentino | April 6th, 2010 @ 01:14 AM

The updated versions of Xcode and Interface Builder (but I believe Interface Builder is the one to blame) crash on xib files using BWToolkit UI Elements. It doesn't seem to crash if you create new xib files with those versions though.

I can't edit my xibs and compilation fails in Xcode when reaching xib files containing BWToolkit UI Elements.

Comments and changes to this ticket

  • Geoffrey Grosenbach

    Geoffrey Grosenbach April 22nd, 2010 @ 04:12 PM

    I can also confirm this error.

    ibtool failed with exception: NSColor's provided through the IBUIColorSupport mechanism can only exist in a Cocoa Touch target runtime.

    I'll try rebuilding the XIBs from scratch as mentioned.

  • Romain Cosentino

    Romain Cosentino April 22nd, 2010 @ 04:33 PM

    Yep, that's the error I get.
    Unfortunately for me I have a lot of xibs with these errors and in 3 different languages.
    I cannot hope to redo every one of them from scratch it would take me days.

    I really hope this will get fix ; I would love for B. Walkin to look at it.

  • Ryan Williams

    Ryan Williams May 1st, 2010 @ 09:11 PM

    • Tag set to interface builder, bwstyledtextfield, crash, ibuicolorsupport, nscolor
    • Assigned user set to “Brandon Walkin”

    This error happens for me when creating a brand new .nib file and adding a BWStyledTextField. If you're using it maybe you can edit the nib's XML to remove it manually.

  • Evadne Wu

    Evadne Wu May 8th, 2010 @ 11:32 PM

    • Assigned user cleared.

    After some attempt to fix the issue the culprit certainly lies within the updated Interface Builder plugin at /Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Interface Builder/Plug-ins. Moving this plug-in away (by renaming it, etc) ameliorates the issue and could help to be a temporary fix.

    Basically, +[NSColor colorWithPatternImage:(NSImage *)image] is mysteriously broken by 3.2’s Cocoa Touch IB plugin.

  • Brandon Walkin

    Brandon Walkin May 8th, 2010 @ 11:34 PM

    Interesting. Thanks for investigating.

  • Romain Cosentino

    Romain Cosentino May 9th, 2010 @ 06:54 AM

    This temporary fix is great !!!
    I don't have to switch between two partitions to use with both SDKs anymore...

  • Evadne Wu

    Evadne Wu May 9th, 2010 @ 06:38 PM

    • Tag changed from interface builder, bwstyledtextfield, crash, ibuicolorsupport, nscolor to interface builder, bwstyledtextfield, crash, ibuicolorsupport, iphonesdk, nscolor

    A temporary fix on BWStyledTextFieldCell.m that restores 95% of the functionality (i.e., removes the crasher) is committed to our GitHub fork, tested under 10.6 / x86_84.

    I was seriously wrong about the culprit, since +[NSColor colorWithPatternImage:(NSImage *)image] itself is not broken in any sense; the bug lies within the coding process (i.e. when the pasteboard is involved).

    We made -(NSDictionary *) _textAttributes deliberately lie (assigning self.solidColor as the color of the text, even if self.hasGradient is YES) if…

    • The control is living within an IB document, that is, it responds to ibDidAddToDesignableDocument:.

    • And the call stack resulting in some method requesting the attributes does not contain -drawRect.

    Note: _textAttributes ought not lie when the document has just been saved. We’ll look into this issue soon.

  • Brandon Walkin

    Brandon Walkin June 4th, 2010 @ 12:42 PM

    • State changed from “new” to “accepted”
    • Title changed from “BWToolkit crashes after iPhone SDK 3.2 Update.” to “BWStyledTextField causes ibtool to fail”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

BWToolkit is an Interface Builder plugin that contains commonly used UI elements and other objects designed to simplify Mac development.

Shared Ticket Bins