Interface Builder Loses Outlets, Actions of Subclasses [WORKAROUND]
Interface Builder Loses Outlets, Actions of Subclasses [WORKAROUND]
- Subject: Interface Builder Loses Outlets, Actions of Subclasses [WORKAROUND]
- From: Jerry Krinock <email@hidden>
- Date: Thu, 31 Dec 2009 23:06:23 -0800
I'm writing this message to myself, so I'll be able to search the list archives and find it next time this happens.
Problem:
You open an old xib one day. The xib contains instances your own subclasses of Cocoa classes, which you outlets and actions you've defined. Some of these are even connected in the xib. However, Interface Builder has some of these connections in the Inspector grayed out, and when you hold your mouse over them, a tooltip says that, for example,
"Action foo: is connected, but action foo no longer exists in class Bar"
Also, when you try to connect to action foo: in another instance of Bar, you cannot because it is not listed in hud panel.
Solution:
1. Dirty the file Bar.h by adding and removing a character.
2. Save the file Bar.h.
3. In Interface Builder, click menu File > Read Class Files > Bar.h
All three steps are necessary.
The problem is not reproducible, it just happens occasionally.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden