[futurebasic] Re: [FB] Notification Manager TB calls

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2000 : Group Archive : Group : All Groups

From: Derek Smith <dereksmi@...>
Date: Sat, 8 Apr 2000 16:46:12 -1000
On Sat, 8 Apr 2000 futurebasic-return-17814-dereksmi=hawaii.edu@... wrote:

> If anyone has converted the NM calls from the universal headers, I 
> would appreciate the TB calls to add to FB^3.

Just add this in somewhere...it'll only work in PPC mode I believe so if
you need 68k too, let me know.

#define NMUPP as Proc

begin record NMRec
dim qLink as long/* next queue entry*/
dim qType as short/* queue type -- ORD(nmType) = 8*/
dim nmFlags as short/* reserved*/
dim nmPrivate as long/* reserved*/
dim nmReserved as short/* reserved*/
dim nmMark as short/* item to mark in Apple menu*/
dim nmIcon as Handle/* handle to small icon*/
dim nmSound as Handle/* handle to sound record*/
dim nmStr as long/* string to appear in alert*/
dim nmResp as NMUPP/* pointer to response routine*/
dim nmRefCon as long/* for application use*/
end record

#define NMRecPtr as pointer to NMRec

toolbox fn NMInstall(NMRecPtr nmReqPtr)=OSErr `0xA05E
toolbox fn NMRemove (NMRecPtr nmReqPtr) =OSErr `0xA05F