🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #1446

Finding Services my app provides

#1446
From: Rex Pruess
Date: Mon, 12 Oct 1992 23:19
22 lines
1766 bytes
I have an application which provides services to other apps.  These are
static services, determined at compile/load time using a "services" file.
In my app's Preferences, I give the user the option of enabling/disabling
individual Service items, per NeXT's recommendations.

Each time I change my app's "services" file, I must invoke InterfaceBuilder
& update my Preferences panel to reflect the changes.  I'd rather not do
that.  Instead, I'd like to build the Preferences list dynamically, based
on the contents of my static services file.  But, I can't figure out how to
find the contents of my static services file at run time.  I'd like
something along the lines of:

     myMenuServicesToOthers = [NXapp menuServicesMyAppProvides];

Note: I have no need to provide dynamic services.  I just need a way at
runtime to find the static services my app provides to other apps.

If it matters, I'm running NeXTSTEP Release 3.0.
--
----------------------------------------------------------------------------
    Rex Pruess, Weeg Computing Center, University of Iowa, Iowa City, IA
       NeXTmail: Rex-Pruess@uiowa.edu ......... Phone: (319) 335-5452
Technical Details
Message-ID: <RPRUESS.92Oct12171923@yoyo.weeg.uiowa.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!eff!news.byu.edu!gatech!swrinde!sdd.hp.com!ux1.cso.uiuc.edu!news.iastate.edu!hobbes.physics.uiowa.edu!news.uiowa.edu!news.weeg.uiowa.edu!news!rpruess

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!eff!news.byu.edu!gatech!swrinde!sdd.hp.com!ux1.cso.uiuc.edu!news.iastate.edu!hobbes.physics.uiowa.edu!news.uiowa.edu!news.weeg.uiowa.edu!news!rpruess
From: rpruess@yoyo.weeg.uiowa.edu (Rex Pruess)
Subject: Finding Services my app provides
Message-ID: <RPRUESS.92Oct12171923@yoyo.weeg.uiowa.edu>
Sender: news@news.weeg.uiowa.edu (News)
Nntp-Posting-Host: yoyo.weeg.uiowa.edu
Organization: U of Iowa, Iowa City, IA
Date: Mon, 12 Oct 1992 23:19:23 GMT
Lines: 22