Mac Cocoa |
Author |
Message |
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Mon Jul 13, 2009 1:38 am Post subject: |
|
|
Determining the number of decimal numbers for a currency
"Using the UK locale, a currency looks like this: £1,234.56. Using the Ger-
man (Germany) locale, a currency looks like this: 1.234,56 € and finally, a
Japanese currency: ¥1,234" |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Wed Aug 12, 2009 10:01 pm Post subject: |
|
|
SO - What’s the difference between using CGFloat and float?
"I tend to use CGFloat all over the place, but I wonder if I get a senseless
'performance hit with this. CGFloat seems to be something "heavier" than
float, right? At which points should I use CGFloat, and what makes really
the difference?" |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sat Mar 06, 2010 8:52 pm Post subject: |
|
|
MF - How to get the value of NSDate Compare?
"Convert the two dates into numbers using the timeIntervalSinceReference-
Date method. Then you can simply subtract them to get the difference mea-
sured in seconds." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
Posted: Fri Apr 23, 2010 5:16 pm Post subject: |
|
|
MF - How Do I Convert from an NSString to a double?
"You have to use the NSNumberFormatter class or, if you want to hardcode
the format, you could do some string operations to insert commas at the
right places in the string." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3136 Location: Europe
|
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Wed Apr 04, 2018 9:11 pm Post subject: |
|
|
so - NSNumberFormatter currency symbol
"My application is allowing user to select various currencies for spendings
tracking. I have a label which displays the amount with currecy symbol. I'm
using NSNumberFormatter with kCFNumberFormatterCurrencyStyle to format
the amount string and display it in the label" |
|
Back to top |
|
|
|