• 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
Re: showing a symbol on NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: showing a symbol on NSTextField


  • Subject: Re: showing a symbol on NSTextField
  • From: Jerry Krinock <email@hidden>
  • Date: Mon, 08 Jan 2007 11:04:11 -0800
  • Thread-topic: showing a symbol on NSTextField

on 07/01/08 9:58, Tolga Katas at email@hidden wrote:

> I'm grabbing html text from the web, anyone know of a  quickway to
> change &trade;  to a TM symbol? I need to show it in an NSTextField.

The hard part: In any Cocoa app, menu > Edit > Special characters, and find
the unicode for "trademark" .

The easy part:

myStr = [NSString stringWithFormat:@"%@ %C", @"MyTrademark", 0xffff] ;

where you have replaced ffff with the unicode you found in the hard part.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

References: 
 >showing a symbol on NSTextField (From: Tolga Katas <email@hidden>)

  • Prev by Date: Re: ESC to cancel editing in tableview
  • Next by Date: Binding crashing while drag and droping into NSTableView
  • Previous by thread: showing a symbol on NSTextField
  • Next by thread: Custom toolbar items not drawn in Default Set
  • Index(es):
    • Date
    • Thread