• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Using Services - not quite how they were intended
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Bindings and Quartz Composer
  • Next by Date: Re: "... may not respond to -someMethod ..."
  • Previous by thread: Re: "... may not respond to -someMethod ..."
  • Next by thread: Bindings & empty strings
  • Index(es):
    • Date
    • Thread