🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #1061

Re: REQ: Carbonized "DropUnix" lib or source code. Need to fill in argc, argv from drag&drop

#1061
From: David Phillip Oster
Date: Sat, 02 Feb 2002 20:40
40 lines
2955 bytes
In article 
<oster-893CC9.07534802022002@newssvr14-ext.news.prodigy.com>,
 David Phillip Oster <oster@ieee.org> wrote:

opps. That is my ZeroResourceFork applet, not my Rot13 applet (when I 
looked at my Rot13 file handling, I didn't like it and decided to post a 
similar applet, but forgot to edit the header.) also, the code I posted 
left out the key handling:


static void GoKey(EventRecord *event){
   if(cmdKey & event->modifiers){
      GoMenu(MenuKey(event->message));
   }
}

/* GoEvent - main event dispatcher.
 */
static void GoEvent(EventRecord *e){
   if(IsDialogEvent(e)){
      DialogPtr dp;
      SInt16   item;
      if(DialogSelect(e, &dp, &item)){
         // NavGetFile?
      }
   }else{
      switch(e->what){
      case keyDown:        GoKey(e);            break;
      case mouseDown:         GoMouseDown(e);         break;
      case kHighLevelEvent:   AEProcessAppleEvent(e); break;
      }
   }
}


Note that NavServices wants each program to have a unique 4-byte 
signature, and that Apple has a web page 
<http://developer.apple.com/dev/cftype/> , where you must register those 
signatures. If you don't do it, some user might double click on a file 
and have the wrong app open.
Technical Details
Message-ID: <oster-59C4C6.12402902022002@newssvr14-ext.news.prodigy.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!small.news.tele.dk!207.115.63.138!newscon04.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr14.news.prodigy.com.POSTED!not-for-mail
References: <280120020050500931%NotMe@really.org> <oster-893CC9.07534802022002@newssvr14-ext.news.prodigy.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f635e,a0f22049898d59c5
X-Google-Attributes: gidf635e,public
X-Google-Thread: 10bcce,a0f22049898d59c5
X-Google-Attributes: gid10bcce,public
X-Google-ArrivalTime: 2002-02-02 12:41:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!news.tele.dk!small.news.tele.dk!207.115.63.138!newscon04.news.prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr14.news.prodigy.com.POSTED!not-for-mail
From: David Phillip Oster <oster@ieee.org>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Subject: Re: REQ: Carbonized "DropUnix" lib or source code. Need to fill in argc, argv from drag&drop
Organization: http://www.TurboZen.com
References: <280120020050500931%NotMe@really.org> <oster-893CC9.07534802022002@newssvr14-ext.news.prodigy.com>
User-Agent: MT-NewsWatcher/3.1 (PPC)
X-Face: iR>C6?LNAcg&!xxr{}\7y$W@~UW,\:5'<H=KmFr^OY!`48#Nqao]VO#+oxocr        ="e"*!AxDM1my!y7uoK4<&hQ-9c\KxG_b3eD{JlM2+r0BYXAo<~N|g'3p<tXe37b[79@        ?46JFrQ?^D479N=<Au~;,ax]LOils0QyP.qY!Mw5o'2$<qA{V)<J-<2Y8K
Message-ID: <oster-59C4C6.12402902022002@newssvr14-ext.news.prodigy.com>
Lines: 40
NNTP-Posting-Host: 64.167.142.226
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr14.news.prodigy.com 1012682429 ST000 64.167.142.226 (Sat, 02 Feb 2002 15:40:29 EST)
NNTP-Posting-Date: Sat, 02 Feb 2002 15:40:29 EST
X-UserInfo1: Q[OMRWWGPRR_RV\XNCOF_W\@PJ_^PBQLGPQRJVMHQAVTUZ]CLNTCPFK[WDXDHV[K^FCGJCJLPF_D_NCC@FUG^Q\DINVAXSLIFXYJSSCCALP@PB@\OS@BITWAH\CQZKJMMD^SJA^NXA\GVLSRBD^M_NW_F[YLVTWIGAXAQBOATKBBQRXECDFDMQ\DZFUE@\JM
Date: Sat, 02 Feb 2002 20:40:29 GMT