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 thought

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 th

Re: [MEET] CocoaHeads Mac Developer Meetings

2008-07-04 Thread Vincent E.
On Jun 30, 2008, at 8:21 AM, Stephen Zyszkiewicz wrote: Upcoming meetings: Frankfurt, GER - Monday July 07, 2008 07:00 PM CET - http://cocoaheads.org/de/Frankfurt/index.html - http://upcoming.yahoo.com/event/857251 ___ Cocoa-dev mailing list (Cocoa

Re: Regular Expressions?

2008-06-06 Thread Vincent E.
When I mentioned "perl -pe 's/\b(.*?)/\u\L$1/g'" I actually wasn't asking for any ObjC method with a look-alike syntax. I actually wouldn't give a damn about "how" ("s///g") to pass a regex pattern to a method. ;) I was rather asking whether RegExKit (or even RegExKitLite?) would generally

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 wo

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 libicu

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