Using Services - not quite how they were intended
Using Services - not quite how they were intended
- Subject: Using Services - not quite how they were intended
- From: Thomas Davie <email@hidden>
- Date: Tue, 17 May 2005 16:23:35 +0100
Hi,
I'm trying to integrate a re-factoring tool into various OS X text
editors - the tool essentially needs three pieces of input - the name
of the file to refactor, the start and end position of the selected
text and the refactoring to perform.
Ideally I'd like to provide the re-factorings as services, so a
"Refactorer" menu appears in the services menu with the all the
possible refactorings available in it. The service would then go
away and refactor the code. However, NSServices appears not to
provide enough information, in that it provides merely the text that
is selected, I need the document name and *where* text was selected.
Is there any way to get this data from the callers?
Thanks
Tom Davie
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden