CompuServe Messages

#Saving window location

    13-Mar-94 22:15:27
Sb: #163565-#Saving window location
Fm: Eric Long 72764,1072
To: Wayne K. Walrath, RFE/RL 73243,3303
Wayne & Tryg, Thanks for your input. I will definitely use a Prefs file. It would be unusual to have a program that is redistributed among different users that comes up with, say the window way off to the right. Better to let that info be in a prefs file. I agree with the idea of saving the position at close or quit. I'm a newbie on the Mac. I'm always having difficulties, as you can imagine. I've been trying to figure out from the THINK Reference how to make use of the Notification Mgr. when running in the background. My code brings up the message when I step through in the Debugger, but otherwise it comes up nada. Here's an approximate of the code: /******************** SendNote ************************/ void SendNote( void ) { NMRec myNote; OSErr err; Str255 tempStr; memcpy( tempStr, gNotifyStr, strlen(gNotifyStr) ); myNote.qType = nmType; myNote.nmMark = 1; myNote.nmIcon = GetResource( 'SICN', kBaseResID ); myNote.nmSound = (Handle) -1L; myNote.nmStr = (StringPtr)&tempStr; //Use alert box myNote.nmResp = nil; myNote.nmRefCon = 0; err = NMInstall( (NMRecPtr) &myNote); RemoveQueue( &myNote ); } /************************** RemoveQueue **************************/ void RemoveQueue( NMRecPtr notifyPtr ) { OSErr err; err = NMRemove( notifyPtr ); } Can you please tell me why this *^&@# thing won't work! I've changed the code so many ways and nothing works. I tried putting the response procedure address in, I started without a seperate function and just put the remove after the install. I tried setting nmResp to -1 and accomplished nothing. I can't figure out what the THINK Reference is saying to do. Nothing seems to work for me. It even mentioned setting nmResp to NULIL. What the heck is NULIL? Help, Eric (-: