Instance not responding to selector
Instance not responding to selector
- Subject: Instance not responding to selector
- From: Erik Stainsby <email@hidden>
- Date: Tue, 10 Jul 2012 21:03:05 -0700
I have a set of plugins which I load via a custom framework. The plugins load and behave correctly in the UI.
I have a set of corresponding "rule" objects, one for each class of plugin. A plugin may load data from a rule, and a rule may load data from a plugin: -[RSRule loadFromPlugin:(RSPlugin*)plugin] or -[RSPlugin loadFromRule:(RSRule*)rule]. I have moved away from using categories to do this and the classes implement these methods internally. The header files list the methods correctly.
However, after a clean and build, attempting to invoke any of these -[loadFrom..:] methods causes a crash reporting "unrecognized selector".
A typical error message:
2012-07-10 20:42:39.791 Trixie[41453:303] -[RSReactionRule loadFromPlugin:]: unrecognized selector sent to instance 0x1018961b0
2012-07-10 20:42:39.792 Trixie[41453:303] -[RSReactionRule loadFromPlugin:]: unrecognized selector sent to instance 0x1018961b0
2012-07-10 20:42:39.794 Trixie[41453:303] (
0 CoreFoundation 0x00007fff898bf716 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff858a5470 objc_exception_throw + 43
2 CoreFoundation 0x00007fff89955d5a -[NSObject(NSObject) doesNotRecognizeSelector:] + 186
3 CoreFoundation 0x00007fff898adc3e ___forwarding___ + 414
4 CoreFoundation 0x00007fff898ada28 _CF_forwarding_prep_0 + 232
5 Trixie 0x000000010000adf3 -[RSRuleWindowController addRuleToStore:] + 131
6 AppKit 0x00007fff8a4b2599 -[NSApplication sendAction:to:from:] + 342
7 AppKit 0x00007fff8a4b23f7 -[NSControl sendAction:to:] + 85
8 AppKit 0x00007fff8a4b232b -[NSCell _sendActionFrom:] + 138
9 AppKit 0x00007fff8a4b0813 -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 1855
10 AppKit 0x00007fff8a4b0061 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 504
11 AppKit 0x00007fff8a4af7dc -[NSControl mouseDown:] + 820
12 AppKit 0x00007fff8a4a713e -[NSWindow sendEvent:] + 6853
13 AppKit 0x00007fff8a4a3274 -[NSApplication sendEvent:] + 5761
14 AppKit 0x00007fff8a3b8eaa -[NSApplication run] + 636
15 AppKit 0x00007fff8a35d886 NSApplicationMain + 869
16 Trixie 0x00000001000012a2 main + 34
17 libdyld.dylib 0x00007fff8890b7e1 start + 0
)
Any advice on how I could narrow down what is causing this? I have tried using repondsToSelector: but this doesn't do anything but confirm what the error message states, that the selector is not recognized.
~ Erik
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden