🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.help
Article #80

Re: AppendDialogItemList strangeness...

#80
From: Jens Ayton
Date: Mon, 21 Aug 2000 00:00
36 lines
2945 bytes
petrock:
> 
> Hello,
>         I am having a strange problem with AppendDialogItemList under OS
> 8.1.  My app has a dialog that changes according to some user settings.
> I use AppendDialogItemList to add the required DITL to the dialog.  Under
> OS 8.5 and up, it works perfectly.  But when I use OS 8.1 I get an error
> message when I try to run the app that it couldn't find a library called
> "MacDialogsLib".  I did a search in Codewarriors find library and it is
> imported from DialogsLib, which I have linked in (tried both Stub and
> Shared versions with same result).
> 
> According to Inside Macintosh:Dialog Manager OS 8 reference,
> AppendDialogItemList should work under OS 8 when the Appearance Manager
> 1.0 or better is available, which it is (1.0.1 to be exact).  Am I
> mistaken in this assumption?  Am I missing a lib or something?  I am
> using Codewarrior 5.3 with Univ Interfaces 3.3.2.

AppendDialogItemList is exported from DialogsLib (and not AppearanceLib;
this is not a duplication situation). DialogsLib (Dialog Manager 2.0) is
part of Mac OS 8.5 and later. This is probably a documentation error
(although Dialogs.h also says it's part of Appearance 1.0). Or possibly
it was moved from AppearanceLib to DialogsLib, in which case you should
mutter nasty things about Apple under your breath and then import it
manually from whichever lib it is available in. (Modus operandi: try to
get MacDialogsLib with GetSharedLibrary. If you get it, load
AppendDialogItemList with FindSymbol; otherwise, try getting
AppearanceLib and attempt to load AppendDialogItemList with FindSymbol;
if this fails, consider AppendDialogItemList to be unavailable.)


-- 
Jens Ayton                            Certified 36.3636363636364% insane
PGP public key:  <http://home4.swipnet.se/~w-49116/stuff/jens_ayton.pgp>

Relieve guilt and hunger in one fell swoop: http://www.thehungersite.com
Technical Details
Message-ID: <39A109A1.E3DD6DF8@nettaxi.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8nqsv2$qud$1@nnrp1.deja.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 101ec9,26881f5ebad1642e
X-Google-Attributes: gid101ec9,public
X-Google-Thread: 10bcce,26881f5ebad1642e
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,97db80ad960c949
X-Google-Attributes: gidf635e,public
From: Jens Ayton <jAyton_spambox@nettaxi.com>
Subject: Re: AppendDialogItemList strangeness...
Date: 2000/08/21
Message-ID: <39A109A1.E3DD6DF8@nettaxi.com>
X-Deja-AN: 660671422
Content-Transfer-Encoding: 7bit
References: <8nqsv2$qud$1@nnrp1.deja.com>
X-Sender: -@c212-151-1-33.swipnet.se
X-Accept-Language: en,sv
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news-abuse@swip.net
X-Trace: nntpserver.swip.net 966854989 212.151.0.33 (Mon, 21 Aug 2000 12:49:49 MET DST)
Organization: Tending towards entropy.
MIME-Version: 1.0
Reply-To: jAyton@nettaxi.com
NNTP-Posting-Date: Mon, 21 Aug 2000 12:49:49 MET DST
Newsgroups: comp.sys.mac.programmer.help,comp.sys.mac.programmer.codewarrior,codewarrior.mac