Re: Cocoa equivalent of CFStringTransform()

2013-03-28 Thread John Joyce
> >> I am not able to locate one, but is there still no Cocoa method like >> CFStringTransform() ? >> I seem to recall there being one now, but it may be a simple NSString >> Category I wrote that I am thinking of. > > You can just call CFStringTransform on an NSMutableString by casting it to a

Re: Cocoa equivalent of CFStringTransform()

2013-03-28 Thread Jens Alfke
On Mar 28, 2013, at 8:59 PM, John Joyce wrote: > I am not able to locate one, but is there still no Cocoa method like > CFStringTransform() ? > I seem to recall there being one now, but it may be a simple NSString > Category I wrote that I am thinking of. You can just call CFStringTransform

Cocoa equivalent of CFStringTransform()

2013-03-28 Thread John Joyce
Hi all, I am not able to locate one, but is there still no Cocoa method like CFStringTransform() ? I seem to recall there being one now, but it may be a simple NSString Category I wrote that I am thinking of. ___ Cocoa-dev mailing list (Cocoa-dev@li

Selecting default NSTableView column with bindings?

2013-03-28 Thread Rick Mann
Hi. I have an NSTableView that binds to an NSArrayController that binds to an NSMutableArray property I have. I sort that array each time it's modified (it's small, and modifications are infrequent). The NSTableView displays items in the right order, but when it is first displayed, no column i

Re: Convert spelled out numbers to digits?

2013-03-28 Thread Kyle Sluder
On Thu, Mar 28, 2013, at 09:57 AM, Eric E. Dolecki wrote: > In my particular case I don't need to use CFStringTokenizer since this > won't be using anything but English. It's a valid general point however. Just use it anyway. Why bother writing all the code necessary to correctly parse "thirty-six

Re: Convert spelled out numbers to digits?

2013-03-28 Thread Eric E. Dolecki
In my particular case I don't need to use CFStringTokenizer since this won't be using anything but English. It's a valid general point however. Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki Imagineric On Th

Re: Convert spelled out numbers to digits?

2013-03-28 Thread Kyle Sluder
On Mar 28, 2013, at 6:57 AM, Kirk wrote: > Simplistically: > > Parse words of text into an array of words.(Or an array of NSRanges) Do not do this yourself. Use CFStringTokenizer. > > Test each word for "numberness" (non-nil return) using NSNumberFormatter. I don't think this is going to w

Re: Convert spelled out numbers to digits?

2013-03-28 Thread Kirk
Simplistically: Parse words of text into an array of words.(Or an array of NSRanges) Test each word for "numberness" (non-nil return) using NSNumberFormatter. Group sequential numeric words (like "seventy three") into strings and evaluate with NSNumberFormatter to get numeric value. There wi

Re: Convert spelled out numbers to digits?

2013-03-28 Thread Eric E. Dolecki
How would you go about looking for arbitrary numeric word(s) in a string to then convert using the NSNumberFormatterSpellOutStyle? Using NLP in Obj-C? Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki Imagineric