• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


  • Subject: (no subject)
  • From: email@hidden
  • Date: Mon, 11 Feb 2002 13:58:43 -0800

[I am posting this response to the full list even though the message was sent only to me, because e-mail to Darin Duphorne, the person who sent this to me, bounces. No other reply-to address exists in his e-mail. My apologies to him and others; I see no alternative except not replying to him at all. Perhaps my reply will at least be of some interest to somebody else on this list...]

Thanks. It has taken me some time to get back to this, but I still
can't make it work. Can you tell why this line doesn't work? I get
the dreaded "selector not recognized" error message. You said the
encodings are tricky - I tried NSUTF8StringEncoding and that didn't
work, either.

htmlData=[[htmlView string]
dataUsingEncoding:NSASCIIStringEncoding];
attrStr=[[NSString alloc] initWithHTML:htmlData baseURL:htmlURL
documentAttributes:NULL];
[[displayView textStorage] setAttributedString:attrStr];

Selector not recognized means you're sending a message to an object
that that object simply doesn't support -- it shouldn't have anything to
do with encodings. I would suggest you look at the backtrace when that
error occurs, to see which selector it is that is wrong. I don't see
anything wrong with the above snippet offhand, but it should be pretty
easy to at least find out what the offending message is. It may just be
a typo, or you may think that something like [htmlView string] is of a
different class than you think it is.
Good luck...

Ben Haller
Stick Software
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Option key state
  • Next by Date: Re: Multiple nibs
  • Previous by thread: Re: NSWindow: initWithWindowRef
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread