Re: Why did this happen?
Re: Why did this happen?
- Subject: Re: Why did this happen?
- From: Rudi Sherry <email@hidden>
- Date: Fri, 04 Mar 2005 08:09:31 -0800
On Mar 3, 2005, at 5:17 PM, John C. Randolph wrote:
On Mar 3, 2005, at 4:56 PM, Justin Spahr-Summers wrote:
This means the function you are trying to call does not exist.
On Thu, 3 Mar 2005 15:50:25 +0100, Jesus De Meyer
<email@hidden> wrote:
I was testing my app and suddenly I got this message in the Console:
*** -[HTMLSemanticEngine
_bestRepresentation:device:bestWidth:checkFlag:]: selector not
recognized
Do I need to pass the fastestRepresentation of an NSString to an
NSAttributedString or is there something else happening here?
To be a little more specific, it means that something tried to send a
"_bestRepresentation:device:bestWidth:checkFlag:" to an instance of
HTMLSemanticEngine, which class does not implement a method of that
name.
Somewhere, a pointer's getting munged, and something that expects to
talk to an NSImage is in fact talking to an HTMLSemanticEngine
instance.
To add to the specificity, it probably means that an NSImage object was
not retained but a pointer to it was kept somewhere. After the NSImage
was released, the same memory was used to allocate an
HTMLSemanticEngine object, and subsequently the saved pointer was used
as if the NSImage was still there -- so the message meant for the
NSImage was sent to the HTMLSemanticEngine.
Look in your code for where you get NSImages and make sure you are
retaining them when need be. This will usually happen when you call
Cocoa function (other than [ NSImage alloc ]) that returns an NSImage
and you don't retain it.
Rudi
---------------------------------------------
Rudi Sherry
Acrobat Desktop Solutions
Adobe Systems Incorporated
408 536 3474
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