• 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
How to Convert "#FF00FF" String Specifying RGB Color to 32 bit int
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to Convert "#FF00FF" String Specifying RGB Color to 32 bit int


  • Subject: How to Convert "#FF00FF" String Specifying RGB Color to 32 bit int
  • From: Peter Zegelin <email@hidden>
  • Date: Thu, 27 Aug 2009 09:50:05 +1000

Hi,

I have some xml where an rgb color value is specified via a "#XXYYZZ" type string. The xml is being read in via NSXMLParser. I can't seem to find an easy Cocoa way to convert this value to an unsigned int. I need an unsigned int rather than an NSColor as the value is used in C+ + code. Does anyone know of something I may be missing?

Thanks!

Peter
_______________________________________________

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: How to Convert "#FF00FF" String Specifying RGB Color to 32 bit int
      • From: Peter Zegelin <email@hidden>
    • Re: How to Convert "#FF00FF" String Specifying RGB Color to 32 bit int
      • From: Gideon King <email@hidden>
    • Re: How to Convert "#FF00FF" String Specifying RGB Color to 32 bit int
      • From: Waqar Malik <email@hidden>
    • Re: How to Convert "#FF00FF" String Specifying RGB Color to 32 bit int
      • From: Rob Keniger <email@hidden>
    • Re: How to Convert "#FF00FF" String Specifying RGB Color to 32 bit int
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Cross-user and cross-process shared settings
  • Next by Date: Re: Making failed NSAsserts crash an app
  • Previous by thread: Re: Cross-user and cross-process shared settings
  • Next by thread: Re: How to Convert "#FF00FF" String Specifying RGB Color to 32 bit int
  • Index(es):
    • Date
    • Thread