[TxMt] Re: CSS Edit like preview

Hans-Jörg Bibiko bibiko at eva.mpg.de
Sun Nov 1 20:18:52 UTC 2009


On 01.11.2009, at 18:03, Jonathan Geiger wrote:

> I'm able to get access to OakTextView instance and OakDocument
> instance in the plugin, but I just can't figure out how to get a copy
> of the current document. xmlRepresentation is the closest I can get,
> but it's not really what I want. Can anyone point me in the right
> direction for that?

Try:
id target = [NSApp targetForAction:@selector(document)];
NSLog(@"%@", [target stringValue]);

[ “target” is an OakTextView ]

Cheers,
--Hans


More information about the textmate mailing list