Insert token at selection of NSTokenField?

2008-08-10 Thread Vincent E.
Hi, I'm wondering if there is any secret technique for inserting a token into an NSTokenField at the current cursor position. I have already tried to code it myself and aborted as my code turned out to be way too unreliable. So before I spend another day trying to get it done myself I

Re: Inverse Regex Library?

2008-07-17 Thread Vincent E.
It could also have been: Word[1247]?[1235789] or Word[124578][13579]? Conclusion: Don't think a reliable solution for this can exist. It's just too few information to detect the right pattern. Even as a human being I'm actually not even 75% sure what's the right pattern for

Re: Regular Expressions?

2008-06-06 Thread Vincent E.
But RegexKitLite does not support substitution, does it? Regex pattern matching is one thing, regex string substitution another. On Jun 6, 2008, at 11:34 AM, dream cat7 wrote: Perhaps also consider RegexKitLite, which is written by the same author. The difference is it links to shared

Re: Regular Expressions?

2008-06-06 Thread Vincent E.
Right, but that's a very trivial string replacement with no advanced modifications. I had thing like this perl script for changing case to word caps in mind: echo 'some test text' | perl -pe 's/\b(.*?)/\u\L$1/g' search pattern would be \b(.*?) replacement pattern would be \u\L$1 I would

Re: Okay I have those pieces… now where's the glue?

2008-05-27 Thread Vincent E.
On May 27, 2008, at 10:25 PM, Wim Lewis wrote: Have you looked at the examples that get installed with the developer tools? In particular, under the AppKit subdirectory there's the source to TextEdit and a simple drawing application named Sketch, both of which are pretty good examples of