Re: NSSearchField _sendPartialString exception
Re: NSSearchField _sendPartialString exception
- Subject: Re: NSSearchField _sendPartialString exception
- From: Spencer Salazar <email@hidden>
- Date: Thu, 1 Dec 2005 12:44:46 -0500
Is it possible that somewhere you are deallocating an array, but then
later trying to send a message to it? This could explain why you are
getting either the selector not recognized error or a crash; perhaps
sometimes the deallocated space is used to store another object,
causing the "selector not recognized" error, and sometimes it is not
reallocated, thus causing a seg fault.
In the past I have gotten a very similar error in which objects were
being deallocated, but I mistakenly kept sending them messages
afterwards. The app would either crash or raise a selector not
recognized exception.
None of this would explain the discrepancy between the two Mac OS
versions, though, so far as I can tell.
spencer
On Dec 1, 2005, at 2:28 AM, dev wrote:
I am encountering a rather annoying error in 10.3.9 when using a
Toolbar searchfield. The searchfield works fine in 10.4, but in
10.3.9 I get an exception every once in a while during search. For
some users this causes a crash. On my machine, the exception is
ignored and I am able to process the search request in my
controller just fine:
Mac OS X Version 10.3.9 (Build 7W98)
2005-11-30 18:35:58.152 Journler[268] *** -[NSCFString
objectAtIndex:]: selector not recognized
2005-11-30 18:35:58.152 Journler[268] *** NSTimer discarding
exception 'NSInvalidArgumentException' (reason '*** -[NSCFString
objectAtIndex:]: selector not recognized') that raised during
firing of timer with target 3abc00 and selector '_sendPartialString'
I have no idea where a string object is being treated as an array.
My search processing code certainly doesn't do this. I also have no
idea what object is targeted by _sendPartialString. I've searched
for this private method by have found almost no information on it.
Any thoughts?
-Phil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40princeton.edu
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden