My plugin is crashing Interface Builder

I built a custom control and IB module for it. If I run a plugin using IB as a custom executable from a plugin project everything works like a champion. But if I copy the framework and plugin to the "usual places", create a test application for it and run the simulator - after crashes from the simulator, IB will fail. I have looked through the webpages and docs, but I cannot find anything on these methods. Any idea what I'm missing? (by the way, the framework is in / Library / Frameworks and the plugin is in /Developer/Platforms/MacOSX.platform/Developer/Library/Interface Builder / Plugins). Here's the stack from the IB crash report:

Approval message: No object for key "IBResizeActionInitialFrame".

Backtrace:
0. Interface Builder 0x00004d29 [IBApplication handleAssertion: inFile: onLine:]
1. InterfaceBuilderKit 0x002c74ee [IBLibraryController createDetailedDescriptionFromTemplate:]
2. InterfaceBuilderKit 0x003aad22 [NSView 3.BuilderKit
Foundation 0x003aad22 [NSView 3.BuilderKit Foundation 0x003aad22 [NSView 3.BuilderKit Foundation 0x003aad22 [NSView 3.BuilderKit Foundation: 0x003aad22 [NSView 3.BuilderKit Foundation] 0x003aad22 [NSView 3.BuilderKit Foundation] 0x003aad22 [NSView lastResizeAction
Foundation ] ]
5. InterfaceBuilderKit 0x0043cec6 [IBResourceManager Document]
6. InterfaceBuilderKit 0x0043d6f9 [IBResourceManager Document: willSynchronizeWithProjectFiles: project:]
7. InterfaceBuilderKit 0x002dfdae [IBResourceManager]
[IBResource
9. Base 0x90baa22e [NSRunLoop runMode: beforeDate:]
 10. CoreFoundation 0x932d6b25 CFRunLoopRunSpecific
 11. CoreFoundation 0x932d6cd8 CFRunLoopRunInMode
 12. HIToolbox 0x92f622c0 BlockUntilNextEventMatchingListInMode
 13. HIToolbox 0x92f620d9 BlockUntilNextEventMatchingListInMode
 14. HIToolbox 0x92f61f4d BlockUntilNextEventMatchingListInMode
 15. AppKit 0x95229d7d _DPSNextEvent
 16. AppKit 0x95229630 [NSApplication nextEventMatchingMask: untilDate : inMode: dequeue:]
 17. Interface Builder 0x0000276b [IBApplication nextEventMatchingMask: untilDate: inMode: dequeue:]
 18. AppKit 0x9522266b [NSApplication run]
 19. AppKit 0x951ef8a4 NSApplicationMain
 20. Interface Builder 0x00004eca [IBApplication changeInspectorMode:]

0


a source to share


2 answers


Ok, here's the answer to my own question: if you override ibDidAddToDesignableDocument

you should call super

. Once I did that, the assertion issue was fixed. Hope this helps someone else.



+1


a source


Thanks for the tip, I had this exception weeks before reading your post. This seems to have fixed my problem.



0


a source







All Articles