• 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
Re: Updating available services with -[NSWorkspace findApplications]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating available services with -[NSWorkspace findApplications]


  • Subject: Re: Updating available services with -[NSWorkspace findApplications]
  • From: Art Isbell <email@hidden>
  • Date: Tue, 3 Jul 2001 16:22:01 -1000

On Tuesday, July 3, 2001, at 01:27 PM, Jeff Cruikshank wrote:

My application provides a service which I would like to be available the first time the app is launched (without requiring the user to log out then log back in).

Launching an app isn't necessary for its services to be registered and to appear in other apps' Services menus.

The findApplications method in NSWorkspace sounds like exactly what I need to call to update the services menu, but I haven't been able to actually get it to work.

- (void)findApplications

Examines all applications in the normal places (/Network/Applications, /Applications, /Developer/Applications) and updates the records of registered services and file types.

If your app isn't installed on the application search path, its services won't appear in other apps' Services menus.

I'm calling [[NSWorkspace sharedWorkspace] findApplications] right after I've called [NSApp setServicesProvider:self].

Unless apps might have been added or removed before your app is launched and you want their services to show up in your app's Services menu, I don't know why you'd need to invoke findApplications. But maybe I don't understand exactly what you're trying to accomplish.

Art Isbell
Apple iServices Technical Support
http://www.apple.com/iservices/webobjectssupport/
+1-808-591-0836


  • Follow-Ups:
    • Re: Updating available services with -[NSWorkspace findApplications]
      • From: Jeff Cruikshank <email@hidden>
References: 
 >Updating available services with -[NSWorkspace findApplications] (From: Jeff Cruikshank <email@hidden>)

  • Prev by Date: Re: Delegate versus Controller
  • Next by Date: Re: Delegate versus Controller
  • Previous by thread: Updating available services with -[NSWorkspace findApplications]
  • Next by thread: Re: Updating available services with -[NSWorkspace findApplications]
  • Index(es):
    • Date
    • Thread