• 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: NSString/NSFont/Dingbats and the SnowFlake symbol
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString/NSFont/Dingbats and the SnowFlake symbol


  • Subject: Re: NSString/NSFont/Dingbats and the SnowFlake symbol
  • From: Murat Konar <email@hidden>
  • Date: Wed, 24 Nov 2010 10:56:58 -0800

Beware the user that has removed all fonts that contain a snowflake... Maybe it would be better to "roll your own".

_murat

On Nov 24, 2010, at 10:14 AM, Dave DeLong wrote:

> You can also do:
>
> NSString * snowflake = @"\u2744";
>
> Cheers,
>
> Dave
>
> On Nov 24, 2010, at 10:11 AM, Stephen Blinkhorn wrote:
>
>>
>> On 24 Nov 2010, at 12:02, Nick Zitzmann wrote:
>>
>>>
>>> On Nov 24, 2010, at 10:46 AM, Stephen Blinkhorn wrote:
>>>
>>>> Hi all,
>>>>
>>>> This seems like a lame question to be fair.  I would like to be able to access the snowflake symbol from the 'Zapf Dingbats' font and simply draw it into a custom control applying attributes like font colour to it.
>>>>
>>>> Charecter details are:
>>>>
>>>> Name: 'SNOWFLAKE'
>>>> Unicode: 2744
>>>> UTF8: E2 9D 84
>>>>
>>>> What's the best way to achieve this in 10.4/10.5 and 10.6 simultaneously?
>>>
>>> Try something like this: (written in Mail, untested, use at your own risk)
>>>
>>> unichar snowflake = 0x2744;
>>> NSString *snowflakeStr = [NSString stringWithCharacters:&snowflake length:1UL];
>>
>> Those are the two lines I needed, thanks Nick.  This has nothing to do with Christmas either!
>>
>> Stephen
>> _______________________________________________
>>
>> 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
>
> _______________________________________________
>
> 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

_______________________________________________

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

  • Follow-Ups:
    • Re: NSString/NSFont/Dingbats and the SnowFlake symbol
      • From: Stephen Blinkhorn <email@hidden>
References: 
 >NSString/NSFont/Dingbats and the SnowFlake symbol (From: Stephen Blinkhorn <email@hidden>)
 >Re: NSString/NSFont/Dingbats and the SnowFlake symbol (From: Nick Zitzmann <email@hidden>)
 >Re: NSString/NSFont/Dingbats and the SnowFlake symbol (From: Stephen Blinkhorn <email@hidden>)
 >Re: NSString/NSFont/Dingbats and the SnowFlake symbol (From: Dave DeLong <email@hidden>)

  • Prev by Date: Re: NSString/NSFont/Dingbats and the SnowFlake symbol
  • Next by Date: Re: Customised NSCell leaves dirty traces while scrolling
  • Previous by thread: Re: NSString/NSFont/Dingbats and the SnowFlake symbol
  • Next by thread: Re: NSString/NSFont/Dingbats and the SnowFlake symbol
  • Index(es):
    • Date
    • Thread