No sign up text chat xx


25-Jun-2015 02:43

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text !

= Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!

'

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text != Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!'

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text != Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!'

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text !

= Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!

'NSNumber Formatter alloc] init] ; if([string length]==0) { [formatter set Grouping Separator:@"-"]; [formatter set Grouping Size:4]; [formatter set Uses Grouping Separator: YES]; [formatter set Secondary Grouping Size:2]; NSString *num = text ; num= [num string By Replacing Occurrences Of String:@"-" with String:@""]; NSString *str = [formatter string From Number:[NSNumber number With Double:[num double Value]; [formatter release]; text Field.text=str; NSLog(@"%@",str); return YES; } else { [formatter set Grouping Separator:@"-"]; [formatter set Grouping Size:2]; [formatter set Uses Grouping Separator: YES]; [formatter set Secondary Grouping Size:2]; NSString *num = text ; if(!

[num is Equal To String:@""]) { num= [num string By Replacing Occurrences Of String:@"-" with String:@""]; NSString *str = [formatter string From Number:[NSNumber number With Double:[num double Value' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='[[

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text != Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

||

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text !

= Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!

'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.

output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

]]') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.

output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '[[

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text != Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

||

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text !

= Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!

'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.

output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

]]'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='[[

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text != Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

||

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text !

= Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!

'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.

output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

]]') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '[[

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text != Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

||

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text !

= Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!

'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.

output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

]]'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='[[

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text != Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

||

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text !

= Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!

'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.

output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

]]') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '[[

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text != Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

||

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text !

= Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!

'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.

output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

]]'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='[[

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text != Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

||

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text !

= Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!

'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.

output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

]]') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.

output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '[[

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text != Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

||

) { // create object universally access global methods var obj Method Inc = Method Inc(object: self) var formatted Text = obj Method Inc.format Credit Card(Card Number.text) if formatted Text !

= Card { Card = formatted Text } if count Elements(Card Number.text) == 19 { Card Number.resign First Responder() Expiry Value.become First Responder() } }// end credit Card Number Formatter func credit Card Expiry Formatter(sender: Any Object!

'\0' : [string character At Index:on Original]; switch (filter Char) { case '#': if(original Char=='\0') { // We have no more input numbers for the filter. done = YES; break; } if(isdigit(original Char)) { output String[on Output] = original Char; on Original++; on Filter++; on Output++; } else { on Original++; } break; default: // Any other character will automatically be inserted for the user as they type (spaces, - etc..) or deleted as they delete if there are more numbers to come.

output String[on Output] = filter Char; on Output++; on Filter++; if(original Char == filter Char) on Original++; break; } } output String[on Output] = '\0'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

]]'; // Cap the output string return [NSString string With UTF8String:output String]; } - (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSString *filter = @"(###) ### - ####"; if(!

- (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSNumber Formatter *formatter = [[NSNumber Formatter alloc] init] ; if([string length]==0) { [formatter set Grouping Separator:@"-"]; [formatter set Grouping Size:4]; [formatter set Uses Grouping Separator: YES]; [formatter set Secondary Grouping Size:2]; NSString *num = text ; num= [num string By Replacing Occurrences Of String:@"-" with String:@""]; NSString *str = [formatter string From Number:[NSNumber number With Double:[num double Value]; [formatter release]; text Field.text=str; NSLog(@"%@",str); return YES; } else { [formatter set Grouping Separator:@"-"]; [formatter set Grouping Size:2]; [formatter set Uses Grouping Separator: YES]; [formatter set Secondary Grouping Size:2]; NSString *num = text ; if(!

[num is Equal To String:@""]) { num= [num string By Replacing Occurrences Of String:@"-" with String:@""]; NSString *str = [formatter string From Number:[NSNumber number With Double:[num double Value]]]; [formatter release]; text Field.text=str; } //NSLog(@"%@",str); return YES; } //[formatter set Lenient: YES]; } Had a need to do this nicely for a phone numbers with a variable format, here's what I wrote.

||

- (BOOL)text Field:(UIText Field *)text Field should Change Characters In Range:(NSRange)range replacement String:(NSString *)string { NSNumber Formatter *formatter = NSNumber Formatter alloc] init] ; if([string length]==0) { [formatter set Grouping Separator:@"-"]; [formatter set Grouping Size:4]; [formatter set Uses Grouping Separator: YES]; [formatter set Secondary Grouping Size:2]; NSString *num = text ; num= [num string By Replacing Occurrences Of String:@"-" with String:@""]; NSString *str = [formatter string From Number:[NSNumber number With Double:[num double Value]; [formatter release]; text Field.text=str; NSLog(@"%@",str); return YES; } else { [formatter set Grouping Separator:@"-"]; [formatter set Grouping Size:2]; [formatter set Uses Grouping Separator: YES]; [formatter set Secondary Grouping Size:2]; NSString *num = text ; if(![num is Equal To String:@""]) { num= [num string By Replacing Occurrences Of String:@"-" with String:@""]; NSString *str = [formatter string From Number:[NSNumber number With Double:[num double Value]]]; [formatter release]; text Field.text=str; } //NSLog(@"%@",str); return YES; } //[formatter set Lenient: YES]; } Had a need to do this nicely for a phone numbers with a variable format, here's what I wrote.

]]

Take advantage of our advanced messaging features to interact with gay men online. Gay Cupid is part of the well-established Cupid Media network that operates over 30 reputable niche dating sites.… continue reading »


Read more

This involves searching the city to find the people you like and then getting them interested enough to want you.… continue reading »


Read more

I am enjoying weekly meetings with different guys however I am bored of the 40 something's and I want to remember what it feels like to have a twenty year old mans skin against my own and his energetic love making putting my mature body to the test.… continue reading »


Read more

Finding love is not about handing over a monthly fee to a dating site that only cares about making sure you stay another month to pay them again." ~2007 from With one of the fastest sign ups possible (most questions can be deferred for later), Plenty of Fish offers most of its features at no cost to the user whatsoever, including instant messaging, smiles, compatibility testing and matching, general dating and geographic forums and a hot or not photo rating system. It doesn't take a browsing single long to run across a profile that proudly exclaims, "Just here for the forums!… continue reading »


Read more