For Alacill/osb Programmers & Developers '. Developers . a Provider . ' or Frontier? Authoring Aids ....... Want to unlock the power of PowerPC·· microprocessors? Here's the key. If you want to crank OUI code that n.:ally member of the PowcrPC family. including you'II get the ctl'llplctc AppIc't MPW environ screams 1)11 PowcrPC microprocessor the PowcrPC 603'" ;uK! P'owcrPC 604"" l1Ient, a.. . well as free upg.mdes for a full year. txL<;ed systems. then it helps 10 work with mK.:roprocessors. And we huild Ulal exper So COIltacl Motorola for more informa lhe experts who know the POW(.... . PC tise imo our highly optimi7..ing CIC++ and tion, or 10 order your own Macinl~ SDK. Architecture'· inside and out- Motorola. FORTRAN compilers. 'nlCy'lI streamline Ant! unlock the power inside POy". .: rl'C Motorola's Software Development Kil~ your code, so your applic:uions run dcanl.:r IIlicroproccssors. flK Puwt:r MacinlOShTWIeverage our experi and faster. And thai can give them 11M! edge Call 1-800-347-8384 or 1-512-891-2999. ence as one of the creators of lhc Powerl'C in lhe marketplace. ArchilCClUrc. We know how 10 get the And now. when you license a Motorola wINwImwe:t h~upJ;IllwfwtwU. p..I...c oInwW'l. ·.o.. ...:. d. 'C hig.hest possible perfonnance out of every CIC++ or FORTRAN SDK for only $349: A'sA.*u1icnL-.t , IisI, pric-e in- u..s. dfoItI.1 _~~~ 10 ct..ac- @ MOTOROLA MaC-OS , ..... O_ _Do~.O-'~nc:_.I\l tI .."..." "" .".._."1 " "''"~ _""~"_OCf 1i_;1_h't'I-o':oI'/"M"a",I,<,-l<f t_ lI.., ,o,,.,,"l,,l, _1<._''I - .r..l. M'CIo.<l<l''II\cr _tO_ _ fIn'<kCo/nojo(t..Io.J _,/_of!o'I_ C*_'' ' .-..<..f..'..C..A..~.._..o..h..o..:.._ ~PCu'''f' _ AftIIIo_l_ _o /. IO£, Eddy Award Winner {or Best New Developer Tool - MacUser Editors Choice Award."I, 1993 orA distinct improuemenl ouer ResEdi/. .. - MacThch I MacThtor "Resort:erer's data template system is arrw..zingf" - Hill Goodman, autllor of Compact Pro "Nuke ResEdit! RelJurcerer is mission-critu.'al for us." - Dave WiTlPr, Userland Frottlier "The color pixel editors are wonderful! A work of art" - Dave Willzier, author of Microsecds Redux "EfJf!ry Macintosh developer Rhouid own a copy of Reson:erer." f--eonard Rosenthal, A/atulin Systems "Reson:en!r will pay for itself many times ouer in saued lime nnd effort." - MncUser reuiew "The templale that disassembles 'PICT's is awesome!" - BilL Steinberg, author of Pyro! and PBThols "Resorcerer proue(i indispensible in its OW,t entation!" - Doug McKenna, author of Resorcerer • ... 0 wealth o(time-saving tools.· MacUller Review, Dec. 1992 RESORCERER@ • New 'eien', 'ppat', 'crsr', 'oeur', ·pltt', 'd ut' editors • PowerfuJ icon family editinJ{ (all 9 icon types) • Color pisel anti-aliasing, dithering, HDd luts morc Nceds: hlc Plus,:a: Sys 4.2, l~m • Complete 'P1C'r diSllSSembly IlDd rctlAACmbly Likes: DC Plus,:a: Sys 7.0. 2~m New 1,2 l"eatureA: • Resou.rce sortinif. ROM resource browsing 32-hit clean. AUIX compatible • 120 template field pSniing types now supported • New insertion & deletion ternplHte field types • Text-oDly 'PIC'r J"e80urces Price: $2[}6 (decimal) • Lots or improvements throughuut (Educationnl, quantity, or other discounts available) • Easier, fUl:lter, mMe Mnc-like, Rnd more productive than RellEdit • Safer mClllory-bul:led, not disk-file-bosed, detlign und operation Includes: 500 paIJC manual • All file informntion nnd common commands in one casy-lo-use window 6O-dllY Moncy-Back Guarantee • Compares resource files, and even edits your datu fork,; flS well DomesLic UPS ground shipping • Visible, accumulnting, edilable scrap • Searches lind opcnsimarkslseled s resourcclj: by' text contenl Pnymcl1L: Check, PO's, or VisnlMC • Makes glohnl resource 10 or type changes ea81ly and 1J1Ifely • Builds resource files from simple Rez-like !:Icripts • Most edittlrfl OeRez directly to the clipboard Extrns (call us): • All graphic editors support screen-copying or partial screen-copying COD, Fed Ex, UPS BluclRed, • Hot-linking Vfllue Converter for editing 32 bits in a dozen formats lnternational Shipping .. Its own 32-biL List Mgr can open lind edit very large data s~ructure8 .. TemplaU!s cnn pre- and post-process nny arbilrllry data structure • Includes nearly 200 templates for common syfltem resources Downluadable DernoslUpdaters: • TMPLs for Installer. MncApp, QT, Help, AppleEvent, OCE. GX, etc. AppleLink: Softwnre Sampler • Full integrated support for editing color dmlogs nnd menus AOL: Software LibAlDevelopment • Try out hnlloolla, 'Ictb'lJ, lists and popups, even treate C source code CompuSe-rve: MACDEVlJ'ools .. Integrated single-window HevCode Editor, with patching, searching • Editors for curso"" versions, pictures, bundles, und lots more or call us. • Well-designed helpful developer tools being added 811 the time • Relied on by Lllou!:lunds of Macintosh developerls around the world MATILEMJESTHE'T'ICS, [NC. P.O. Box 298 .. lJuuidcr • CO • 80306-0298 • USA Phone: (30::J) 440-0707 • 1·'lIx: (303) 440-0504 ApplcLinklAmericuOnline: H.ESOHCEHER .. In~rnet: resorce.rer@nol,com Fol' Macl.'osb I'rogra**tl"J 6 Dtf;tlO~1"J z M A G A N E A publication of IPLAINCORPORATION How To Communicate With Us In Ihis deClronk :18(.'. the:1I1 of communication hal; Ix-'{.'Ollae l)O(h ea~ier and mOR! romplk~lIed. Is it any surprise thaI we prefer e·mail? If you lmve any Cjueslions. fl~l fT't.'C 10 C"JII us:n H05/~91·9797 01" fax US:II 805/494-9798. r ....... OIWAKlMFNffi '''''''''' o.np'- APlJkUuk :--iAmc:rbOnBr.: Orders, Circulllll.on, ("l1"'-....~ keOm~ll<."Ch.l"OCl1 ~rr.(;U~I.!)Ve 71:S33,I06j ~fr.C:IJ~·iTSV(; MT CUSl"SVC: &. Custu,uer Scrvk:c: -{ """"'" L't!iKrillUrll:It:I<... .. h.1."OI1I ~n·.I~ ""',"" Mt".l-:orroR1A1 MT >D'TO'" PmM:r.u"n-.:r"1I O'-1.1k:ngc fl""~~IIIo.'W-..l m"<.'"Ch_OOfJl ~rr.l~ta1 715$2,174 MTJ 'ROC.o--tAl Mr 1'RGCI-lAI, AdSalcs :l(kJl. .-.. ..rIt:.Lll<.'!;h(l.)lll "f" """"" 715$2,1T.l MT.ADSAll-'S r-rr ADSAlffi Onfinc SuIl1J1011 mlno... .h IUlll. .- du_'OI1I "fl".Onlinc 1= .A.u..1.J.w..l:.l.iu. g :tnlullirlj... .4 tng,,'t. .d l.OOfJl :":Uuul!lO;q:!l:lIrU"01l1 1 1n:lfk. .t JI~IUl"t""'lltlUli t.fl"J,-"\kQ( Pn.'M; ''''."Ic• . .a ......... .....u..--..L. ...l l;Il'. ....- h.lUll ......~. io.:a.. ...~. :bncool (".t."fll."l"",u !nI"uemac.l,,·ch l"(llll inM.e,qIlalrUlJlII 71muM M. ...c :llfl-lM. ...G MxT..mt.tIg Ontint: M'PlIOI1 :vc:a hnll_ "'. ......... .IlrK. .." liu:om 1«!!ht"":III. IJflt· Jll.'llllrrll'anL"i: r. ......" 'tlnt MA(;lli.ll GO MAC::I1:l11.\L\(j ·11 ...1 .1 \':In"'~(l-I-O) MACll-ll-l\tAG XPlAL. .. CoaPokAl1O~ MACToc.u MAGA1J"-': CotrlrlblfU"1: F.dilon ~ Chid En-cutiw: Officer · l\dl Tid.lm Muc7t'th MURUziflt! is gro/e/lIl /u Copland. Steve Kkm-. MUllh I~i()n Chief Financial O(ficcr • Andre:1 J. Snidennan a a tbf! /ul/owlfiN ;'Idlvidllflls whu Database· lbm Iln..'ck Ad,·crtising Exl..,·utive. • Ituth 'tllllnn cul/tribllte (m u IT8l1ltlr basis If I! Imernet • Jon Wi~J.:.'Thp;m (.'ustomer Service · 1\1 1~'ilr.Kb uf!IrICeO fdlr(n.),'.l>l(i1c uuJlifH'f.l."t.u l utb seJ udmis'/lbrieb uI«liubnm JUiU/WIIS' t'.\fftdl' MaGgtk.'<fI"C.ra. .p 1rM rcalgeics cript • Kicharo CI:uk, Art Director. Judith <..11aphn prtI8rtJmmillR itl/ormmlon f/;Ihuul I"f.'RtlrrllO Misc. Topks • t-:ric GurKlmm Software EngJnl.."Cf" • nOll Hrc.. ...· (' Apple's tlcr'l.111{X'f Sltllra l*.Jr 'n/umlllliull Oil AcroumiJ\~Asslstant· Blbn !iliill SllonUllillg (/rtie/cs. flSb. 11$ fur Ollr wrller'. l'crformanct: Programming. Jilll GUdlt:e Markellug Manager. JdTrcy Mc~nik kil wbich ;'IC/llties l/xt I('r"'$ Will cQJUlilums ·I1I>S & Tldbit~ (and 1b.:hulcallldltnr) • u/Xm u-bieb we pi/biish lIrljch~_ SIeve Sisak Network Adminislrdtor • Donal (".orCOf".1n Adminislr.. . tlve. As.~lstant • ~.\Jn I'omranlz Reglflar Cub,,",,i$l$ A"d Ollr Edftur1_ Gt..'tlingStancd • Dave M:ltk I'ubLbher/F.dllM·in-Chicf • Neil Tkktin Hoard of Advisors. IIlJkl· I'Mk, A!:tn (".:arsnld. Programmer', ChaJJcJ1)(e • Uob Boonst.ra Managing Edilor • ~tlll N. .· uburg Jurt!:111 ,\1.1I1 .., on. ~C\'("n Geller Inside Info. Chri!l r~plnosa Editorial Assistant. John Kawakami Symal1lec Top 10. Symanlcc ·'b:hmcil EdiloNtI-l.arge • Scott T Uoyd Support Crabb's Appk • Don Cr:lbb I'finled on n.'l)'tkd IJIOllll.""r URl.s • Jim StrJU~ Th/oIUf\II.... . t.blT".h .\.I:a:Ta:11 ............. Mrl"ed! 0>-1OoI.~. tt ~ ItJw.o. MxT«h"\('<:1\ and~"lTt'lil_ U"~lwblnd ~ II:IlHmrbtlXpbm r..ayoxm. AI nftI."fI., m-l'41)1WWI98t 1995 hf Xpbn G:.JlInlu~ ,\I ~ ~ Tr.:tdan:uIt>; ~ 1\ ~<.'dt 'oI:ip1H' 1I.."fIW'l die ~ d Ihc ~ dl:ll Idd ~ MacTcch Magoalne (lSSN: 1067-8360 1 USI~· OJ0-2Z7) is pllhli.4!t:d monthly hy Xp!:un Corpnr.Ulon, H)O-I' HalOp.-:.lnfe Road, \lesrktke \ iIl~}.'t!, CA 91.i61-l8OO_ Yoke: 805I49-i 97tf7. MX: 80')/494-97'98. Ilomeitic subscription mId> 1m: $47.00 per yC'Jr. C;looui:m ~ullliCriptiOllli aR! 5S9.00 per year. All ulhc.:r intt.-rnation;Jl5UbsrnpLion:; .m: 597.00 po!f year. Domestic suorce code dbk .sUh5cripLion~ arc sn pt... . year. AJllntl-rn:llional disk suhscripLions arc 597.00;\ yc'Jf !'icase R.·mit in U.S. funds only. Sl't."UOlI Oass po:stJge i~ p:l1d al11lOU-,,",nd Oaks. (".A and at addition:ll mailing offICe. P.O.S TMAS'J"ER. Send add~ dwnge. tu MacT«h Magazine. 1'.0 130", S200, ~'cstktke Villagt.:, CA 913S9-5200. u1sI I1/IKOAS,1AA Ill':o J ItJNl NO III 1996 IoIIlNll."'''' MAcTEOIM ....G AZ1NP. • JA)l/UAHY "'" """'" For Jlacl./!U& PrOjrlu"",u'6 & Ot!~~lf)~n january 1996 • ~bI/lme 12. No. I M A G A z N E GIETTlIIIG STARTED I'owerPlanl and ModclL... ..." Child Windows ·····•··•···· ...•...... . 7 - By Om:.! Marl.? VIEWPOINT CRABB'S APPLE 4 Tomorrtlw's Developers .........•..... ...•...•..•.....•...... 21 - By DOli emf") CUTTING EDGE nCHNOLOGIES Opening the De80x ...•..........•. .... .. ...•........•••.... 25 A prograllll1ltr's intnx.llK1ion 10 the Be operating ~y. ." lcm - Ily f'C!ler It>lrebic alUi Siwe HOtl)U11Z, IJc I/lc. NEWSBITS 98 "")\1\'\11<. . SYMAMTEC TOP 10 ..................................... 46 - l1y l1icbae/ Ilopldlu. SYllumlt.'C IAVATECII'· Java Rules •.......••.........•..........•.•...........•.... 51 A JaV"J FAQ - By llilld N Coopeml(III mJd A/JtJraj{1tI Fishnl(", DIALOG BOX 90 FROM THE FACTORY FLOOR Java Talk ............•... ...•.•.•.•........•......•.•....•.. 55 - lIy rx,l't! Marl.? INnRNET SOLUTIONS Becoming a M:tclnlosh Service Provider ......••.......••.•...... 58 T:11cs from the field - fly Hmd Scbrick alld I£ric Bickfurd n lE OASSlFlEDS 96 .N i ERNET SPEaAL I.nside UotncDoor .•........•.•..•......••........•••........ 60 Make one weh M:rvcr 3t1 like a nClwork of M:rver.. - IJy 1110" B. Oppellbeillwr INnRNET DEVELOPMENT eGl's: ApplcScript or Frontier? ................................ 63 Coll1pariu~ M:riptin}t environment!! for ec,1d evelopment MA.IL O)u)ER ~'TORE - lJy Mf4S0n /JaIl! 100 BDOKREVIEW New Applc Guide Authoring Aids .•........•.•..........•...... 67 'lhrt..'C ~ ,lI1d ac.:mmpanying softW'JI'C for Applc Guide aUlhoring - l1yJulm N. POUieTS. 1II, guidl!\rurits, tiC ADVl!.KTlSER • NEW APPUO nOiNOLOGY PRODUCT I~DEX III Opc.u.Doc: C.unbin Yourself ........................ .... ,., •.... 71 UpdallflMa ppfications 10 work with Opcnl1oc - By Eric So/dtm, Itppk Detx.!iopcr T(!dmiall S"fJPOrt PROGRAMMER'S ~I I E"GE SLklingl'lks .........•••• , .......•.. ...••• , •.••.•..... " ... T7 TIPS A nnnrrs - lJy lJob /J«Hlslm 112 UNIFORM RESOURCE LOCATORS ....................... 89 - fly Jim Straus II By Scott T /Joyd, HlJilor-at-ulIge, bltpIllI'Il''''.bax.cmnl OUi of cin:ul:lliofl fur ~lC time 0<)\\, all of 11 :.uddcn TMON TMON abo knows some n(:w tricks. "-or example, It ha~ rcaplx-art.'<I on Iht: .o.<.:cne. Rumors have circ:uhled ~jncc in<iic:llt'"s whidl direction of a hr.tndl you'll lake (jUSI likc bdure WWDC \hi'i yelH Ihal TMON would m:lkc it~ M.lcsbug ha'i dune for a long lime). TMON abo handles CfM reemergcnn::, only to Ibten to deafcninj.! ~ilen(c. Well, silent no fl'"dglllcms. TMON :llso offers filters on heap wind!)ws, .~ now more, TMON's 1l<lckl Clkx:k OUI http://wvvw.lmon.com rOll (~m limil the blocks displ:lyt.'tJ hy attribule and/or fe..<;()IlfL'l.: TMON lasl saw major work for System 7 comp:uihilily. info. And herc\ Illy favorite fealure - stcpping no longer docs Since Ihen it h:l~ Iud somcthing of:l humpy ride. for cX:lmple, a M..'1\.'Cn swap unle....s it nL't.-d~ to. \Vlldem:lr Hnrw:lI, jl.~ :!Ulilor, !lpt.'nI a lillle time flni~hing up his Nuw, IXI(k to the hL~tory les..'>I.)Il. I spent some lime 100king Ph.D. ;1\ MIT. 1<.:01\1 Simulations, Ihe original publisher, was c:lrt'fully :II rirking up thc product ri~hl after Viacolll purcha.st..'tl purch:l*d hy Viamlll. As yOll mij.!ht imagine, the medi:1 gi:lnl [COM. I dl."CidL"'(1 10 p:tlt.~, hut Allan fOSter of Guru, Inc. gOI was a lillie Ics. o. ; imercslt.'{1 in a (!(-'bugger, no m:l.lln how great, IntCfl..;:.,It.-d. Aftcr working out an arr:mgcmcnt with Vi:t(:OIl1 and Ih:111 in ICOM's mullin)('di:1 eXlxcni.~. \\:':tldcm:lr, Gunl took it on. He dkl a hu),tc chunk of work Ofl My illLcre~1 in TMON gOc,o; hack tu 19$;. I was in gr.ltl it. adding n)W of the fcaturt.'S mentioned ahovc. just about the schout :11 It-xa~ A&M, discowring how diffi(uh J.!l.ld school em time it was re:ldy 10 ship, MindVision appro.1ched him wilh an txc when Iht'rc''i Ihis really mut (OmpUler cllk.'{1 Mat'intu:. . h Ihal otler he muldn't rcfu!)C, :md now TMON i.~ "hipping under Ihe I I..·ould '~Ixcnd C\\.·ry waking hour 1\."J.rninj.! to progrJ.ffi. flipping MindVbion ~Ibcl. through Mal"":lIine (anyonl..' rcn"k:mber thai Wl-.H rag?) I (':lmc Nnw. no mention of ddmgging would be Wlllpletc ur ac~ :1 hrier memion ('".ompUTopia, :1 Madme):>'h mnferena: wllhnUI menhoning twO other 'if:llw .. ns - Macsbug and Jasik. in Au.'lin. I hoppt.'<I in Ihe (~Ir .tnu urow to Au"in. Applc· ... Jim Murphy has recently added a ~Iew of Powcrl'C Onc h:lIlquel-h:llI-sized room h.ld bOOlhs all Ihe way Mlpport tlem .... to M:lc ... I>tIj.! (IIX) many '0 go into now). and if!> around. proh:lhly not mOl\: Ih.111 Iw.:nly or '>0 :llIoJ-:clher. ju.'>l. deflnilt'l) wurth ch('(king 01..11. 1,\ :1V:libhle in the usu:11 ptae:clI. in.~ide Ihe enll'".1oc': was :1 g1;lI1l, innalahle MacinlOsh. I W:I.' Ukewi ... t'. J:I~ik ha~ addl..·d ... ume intl..'Tc~ling items havin~ :t htlM hanj:ting out with fcllow MJ.l \.,lIhusiaSlS when I (hup:/twww.JaSik.(om). N(II'i) now di..:l. ...x. 'fllhlC!> 1'f.F ('Of1lall"K.~. notk~'<I a crowd of ,:spl:d.llly gt.'Cky type-. g:1I1"k:rinJ-: around onc and h:I.' :1 f:lIlcy Il('W rt..."iOllfCe o.,c1t.'l.1itMl dialog. '11"IC OcIx.I/-th"-T m:H.:hinc. Som\.· extremdyallll1laled guy was drivinj.! the h:lndlc, l'owerPC-1l3Ii\ c w:llchroint" :II1U (an rC;ld in the machine wlnle .o.<um.:how waving his :mn~ :1I"lH.lIld. 100. symhulk.· u\..'l"M.Ip,ging info f1i1..'I! erc;.lll"(1 hy N~)'"s I'EF di ...: l. ...'. t.'mbly. I went mer :lIld :;!afl..:d :11 the screen. "\\:t]l:It un \.".1nh ha'i he done to It!" '111e window~ were all a, wkl.: as the nKlIlitor. DEIIUGGW fOR nlH RF~'T Of Us and Ihey only mm('<I \,(·rticlny. :uKI the contentS moved livc. 1'111 CXdtl"tl to SL'C Ihe relurn of TMON. M:It"in\(lC'Ih dl..-v\..'loper~ They didn'l '''c 'hc .'I:mdard WDEI"', dlher. ·what'~ :111 Ih;1\ dt.'lIel"\'c to have :111 the excellenl lools Iht'y can ~et, and monu:-p:I(\.'{1 j.!lInk In Ilm'>l.': wilKlows!' Wail:1 minute! I think professional., .,huuld have them :111. By :lIlcl large, Ihey all I'm st:Hting to undcrllt:tnd." It ~mdually GUill' illlo focu.<; - I W:II\ provide f:lr more v:IIIH": Ih:ln Iht'y cost. In addition, the st.lring :11 :1 dehuggl'r. lInlike :1Il)'thinlot I had ever M:en. 11111J-:t.:viIY :md experl1:.e repr\.·.,ellieu by folks like J:I.~ik ,tIld Soon :Iiter IIMI I ptln:l!;I"l.'(\ my first l'OpY of TMON, and iI'S MindVision hrin~s :1 101 more In the t.lhk Ih:tn jll<;t a pit.'{"(! of -.crvl"<i a:. my dehugg('r of rhui("c e~'cr siocl'. II W:III :1 WC·J.I dl'hugg)n~ ,oft ware. I know of one devdolx:r y, ho boughl favoril': :lInnnlo! 1~11JI.: f,lc:lIlk' durinR 7.0 dev\..'lupmenl. Iou. j:Jslk's 1:>t:hl.l!-lJ.!cr Ju .. t M.l he t.:oukl C":111 MeVl' wilh an u(l~l~ion;ll One of the We:I' moments in (it:bllAAinJ-: hblory wa:. the que. ... tiun. It·., I-\real to <;(.'C :llIlhn."C dehu/-l8\.·n, undt.'fJ..,'Oing :1(1ive moment when 1 allkt.'(t the nTht PowerPC UtlK emll):II!)r enl-lint.'l.T dc\'dopn"k:nt :md :.uppurt! whClher TMON \\oold work with hi!> emulator I don', know \\h....-ther 10 dCo,(ritxc Ihe luuk on his face :1!> "urpn..'i(.' or fC'J.r It FOOD FOR THOUGIIT n!nalllly IX'lk"<i hi'! ronfkk'n\ relort uf "Ye£ !'lhon!y thcrc:lfler I In .lruWl..T 10 Ihe que.-.tion, "\X'h:lt''i fhe molL.. ... 1 <;tufT corlllllg Olll or tried it (Mil un one till..' very first PI)1\1II (which !:tIer 1)CClml' of Appk' l.ncl)T I Cl(pt.'<.1t.'l.i to he'ar :It)()U1 PC! madlirlCl'i (they're the 61(0). ~LJn: enlM.ll-lh, il "orkt.'<I fine. h'~ :t mi~hly odd :.ighl f:l"), Ihe Color L:t't.'rWriwr (luok., hl{xxI, good price), or QlVR IU ~el..· :1 lo .... -h·~'cl dt'l)lllo!~cr, nmfident as ever 111:1.1 il'!> (too rool!). 1s .,'ollhc follo ....' ln).,' an."Wf: ~Enginl'Crs.~ Ot.!ch! di~pbyin~ Ihe d1..1ailt.'<I ,late of a GRK I..hlp when there's not fC:llIy one inllid~ Ihe IKIX ... -Anew \(x)1 for every rroit-X1!- - G011lulI Sheri/11m . ow TJ\lOr-. know", ahuut huth dliJb. MOSI of the Irkk.~ it'~ :tlwJly.~ knuwn now work for Ihe PowcrPC. 100 - intel':le1i\'c IlIIel"l\\.1. Mention II amJ maybe: yOllr Siock pril""l..· will climh to assembly (jU~1 Iype il in) .tIld diS:1.SI.emhIYi live displ:lys of SIIO/llhan:, 1001 1 mcmioocxl it. Mayhe iI's time for :1Il proces'Ior SI:IIC, raw memory dumps, low memory ( .... IIh :tcqui~i'ion ... namel'i), :100 Mrl,lClure h~mplalt'.'i; :md hreakpoinlS and stcppinj.t. a VU'\\ I'OINT Each ye:lr, the illegalu5e of soflware con,'iumC'\ nearly SO% of your JlOtential revenues, Wilh the nann .". i of piracy eating away:lt your profits, c;m you afford nollo protect your software? , MlidlASl)II is widely acclaimed as the world's most adv:IllCt'tl software protection solution for Macimosh computers. Since 19&'\, thousand-; of 1~lding Mac and PC developers have used over one lI1il1ion MacHASP and liAS? keys to protect billions of dollars ". .o rtll of software. Why? BL'Call<;e Mad lA'iP's security; reliability, and ease.-of-u5e led them to a simple conclUSion: MacHASP is the most effective software prmcction system available. 'Ioday, more developers are clloosing MacllA.<:jp than any (){her software protection IIIClhod. To leam why, ,md to sec howcasily you can increase your ren~nues, call now \0 order your MadlASP ])cvcloper's Kil 1-800-2 H-4 2 77 ALADDIN 'l'lle Professional's Cboice Morth Aladdin Software Security Inc. AnIeriea Td (1Ol) 22.Hm. m'i64)6711 r~1" llllbi U77 ~ m~;1 salesf4'Ii:lSl' COlli 11."'1. liUlr/llo.",. .. llll'l',eu,,' kid Office Aladdin Knowledge Srs\emS Lid. Td. IIn-j.)" )7'1>.ttt9n.1 H7~1')I6 ~--nlOll lIbddJolll'aIJO.td'o.ooJl United Aladdin ItIlowIOOge KIng>dorn Systems UK Ltd. TlI OI7\~FttOtm6n2h2 France Aladdin France SA Ttl. I ~8'i')ll8S.fu: 141 21' )0<,6 Building Internet And Other Native PowerPC Applications Has Never Been Easier Or Faster. SmalttalkAgents"' design and projelt dementS in a "l-indcr and 01£, and will gi ....e you trdllsparent illtc· SmalhalkAgent'l (Sli\) b a like" desktop wlIDPacC as fluidly as you grntiOll .....i th OpenOoc and OLE when they sophL'Iti(3tl'd rdpid applk:a "york ,,~th folders and documems 00 )'om iJe(x)mc available. lion <.k:vdopmcm environ· doktop. hUcrnl1ivcly buikl, wire, and intl..'1" Threading & Intemet Tools CQlUlC(1 reusable I..'OmpOllCfll'l and inter ment basc.:d on a new gen S1i\ pr{)\'ities pow~rful support for Internet CrJtion or the Smali[alk lan faces in an imegraled emironJTl(."tli. 1- guagt:, enabling you [0 easily deliver douhlc QUI Design & Generation I I~,".- ~ _.. '.t' 1~, !_~. ..,.~.;<;;-:T",~ I I",' $t ,c"... .Hz"£ r~n''i<I: i;jI(_§,i"1~_ i JlII dickablc lIppli<':lHions. Uvc "Drdg and Drop" manipulation 10 build F~.,.: _·ut,,~ ~ 11\". ...' .. \"'1' _J""t __ St>.~ .. fOl" ........ ""- Copland Style GUI Look & Feel ~1lur applicalion'~ visual interface using """-"". l'omponent~ that bknO\\" how \0 behave Hello, and aUloconfigurc themsel\'es imo an envi Ple~ provj~ me the Iatestxreen shots for roruncnL emile new compooenl<; an(Vor me new advertisements by MJ1 ~"- """"', wire logctht"f existing romponenl'\ that am Send J Si;.1'"I'l."f" as well as dicm tool de\,L-iopmllll. Pn:-l'lllptivc threading, thread s,1fe librarie; anti cla.'i.'lt'!t fur TeI}1P protocols are stan (~1f(1 IC-dturei lmhling rOll to Quickly arxl easily deliver aJ~lOm e-mail, Vil'wW, lisl'SCfV cr, and other d~11-up/network rcL1ll'tJ aPIl!!. PowerPC Support be $.1\'l'(l as rtu:i.1ble template c.Il."';igll~ for SIA provides binary [XHlabiliry acn~s differ- Wi(! in other applic:ltions or (Olliaincrs. DTP Engine & Word Processor CreJling pro(l.·',:sional qu,.lily user intclfaccs Vb iesasuya \\l~W[h oorukr b<.:oemnpcOhIl l'nl Jk11H libraries. Hw~'}oil\nx .!- nTpOMlUl c.o.d"nCialSy Se Oninrgc lciLnoKem.k, .'pbSUo anI epanlrsoto ga rana dpm omwaebrflucl ...'.. . -.. '.--. .,.-._-- ,' ..- . --'-..,.- ~ .'-.. -'-',--," "-- .'..- ,-' , -' Visually manipulate all objects indlKling report writer Itt11 supports emlx.'tlding of source and dC\ign element., using ),(M..Lr an) kind of objeCtS, m()l..ie;, f10\\':'>, anu TTlOU.'.C and k:cyboord. Vl'1ua1ly fllaflagt: imem.1lionallt'Xl, and page Ia}'(>ut. enl CPUs and Operating S}':'ilt:m~. Design .".- 0_.... _ -_- - apphl"<lIions t(J(by OIl one platform and ,im .'" ~;- ~- C/C++, PascaIVVo~nch e ___'-M _ C,nmpik:, t'tiit, alxl d)1l:J.mkally link CtC+ +, ply oclllor on other phnforms as requirt:d. ..~.- ----, _------ .... -_ -.. P-.Iscal, Fortran, ;uKI Assembly code dirt'(tly COl1lal1 us about our Web Sen-cr & ...-.. ..-... ...........-.~.. . -,.- fmm within our SIi\ Visu:J.1\furkbcnch as an t:licnl1oolkit 21 1-800-2~1339 or at .... .... ' -", inlCgrJlcd IXin of the Sm.1lhalk applic.1lion <info([1 qks.rom> or ..i sit our ~ silt: .,.... ._...,.... -... ... --,- _..-_ - developmcnt process . http:Jtwww.qks.com.i. .... .._ .... -.... ... "" ...... - Component-based Architecture ~1i\ mmponl'llIS arc designed for 01x:n00r c:; ETTI N c:; STARTED By DlIve Mar~ MacTech Magazine Regular COllfribllling Ambor PowerPlant and Mode1ess Child Windows In l:ast momh's column. we huilt 3n In :I<ldilion to the sun PICT from IaSI month's column. I llpplication th:n fcatured windows with added the moun and rt:d Clr pi('1ure.\ from my Scr:.lpHook. two pu~h hlllwn.~ :md :1 scrolling piC(llre Our next step is toedi! PictScroll",r.rsrc using pane. The first hutton heeped when ConstTl.lClor. you dicked it. 'J1lC second button was di.~ahk'd. TIlis month, we'll extend the • Double<lick on !he file PictScrolJer. rsrc. PictSnoller progr.l!ll. We'll enable the second bunon so Ih.11 when you dick it, C.unstmetor will open the file Pic tScr-oller. rsrc lmd a new windnw appe:lrs, allowing you to display a window listing all the view,~ in this flIe, AI rhis point, ,~elecl :l new picture for tht.: ~nolljnJ.: we've got a single view, an LWindow with :m iJ of 1 :lnt! the picture p. 1. nc. name Pict\'(lindow, Our first goal is to m;lkc a few changes to 7b(l1/k.~ Ollce agaill to Greg Vow Jor our existing LWindow view, Our s(.'('ond go:d is 10 creal(' a new all his PowcrP!tm/ belp. Grej.! is a "('{II view, ,Ill LWindow with 3 nldio bullons :tnd a mini PICf fr:Jnle, frielld to fbis CO/limn allti htlS newT bea" Lei's ~:In by L"diting the cxisling LWindow, fOil husy to lentf a band. • Double<lick on the I.Wim.i<JW with the id of I 01 l-Iholiid be OJPl' l..-\Sf MONTH'S the only view lisled in Ihe master vicw lil-lt), PtOSCROUER PROjF.Cf Start off by making a copy of last 'n1e view editing window for the Pj(.1.1\(:rolier r.Window will month's project folder. Rename it :lppe:U, Pi ctSc roll@c2 or something like that. This WlIY, if Ihin~s gel 11 linle screwy, • ])ouble-dick on the title!>ar (If the winduw cmbedd("d in Ihe you don't have \0 start over from SU"dtch, view editing window (the title iYJr S:lys PictStroller), Ar the very leasl, you'll be able 10 start from where we left off last month, An info window for the Pie\.1\(;mlicr window will appear, On(,"(' your old folder L~ tm:kt!d !>:Ifdy '111i5 next slep is i'lcredjb~)llmportal/l: llWliy. open up the PictScrollcr2 folder, Our firs! SII!P will be to ,Idd two • Chang~ the Class ID field frolll wind 10 CpsW. morc PICT n,''SOurcl".''> to the C.nllstTI.I(1or • Close the PictScroJler info window, me PictScr-oller. [src, TIle four lellcr (ca.o;c sensitive!) (.1X1c tells l'owerl'lam what • Open up Pic'tSc[olter.rsrc type of object we are creating. 11lC code 'wind' o)fTCSponds to using your favorite rt-sourcc editor, the dass LWindow, That's the cbss we used I:tst month. TIlL. . • r.h:m~,'c the resource In of the existing month, we'll he :-.uhda:-.sing '-Window wilh a class named PICT rL."iOUR.'C from 128 to 2001. CPictScrollerWindoOl. When you enter the • Add twO more PICT rcsources (() the CPlctScroller-Window class definition (later in the column), file and change their resource IDs 10 you'll see that we <:reale :1Il enum constant wilh the nll!I1C 2002 and 2003, class_ID ,lIld the value 'CpsW', F.:lch time Y(MI creme:1 das... • Save your changes and quil your t.hat implements a PowcrPlant view, you'll Cllter the das,~' resource editor, class_lD nxlc in the Class ID field in the view's info window, II • Oouhlc-click on the U'icture pane Ot has a p:me id of 1003), .. _, Infa far lWlndow ~PltlUre Selettor~ .. When the p.1ne info window appears, change the PIcr ,_ Clicl. ./ Ik-•• ..,: - ~ Itesourre If) to 2001. T.,.: 1 f8I Tw ..t .... ""'~ ~ D ... '~ ...t c_ O_uo>_..-I The first of your du't.'C PIcr resources (the one with the DPe~ ~lHt v_ ... ........1 · resouru: If) 20(1) ,~hould now be displayed in the scrolling fX1°C. v_ ....... 18h:~'OH 0. .......M T,,.: .. Close the U'icture pane info window, V_. :1 .\ -.~ • Douhl ..: -dk:k the Dialog button (the right button). Jltlto:FIOtOr!Iio_ I E::::J • Click on the Enabled check box (so that it is checked). O~-.·" Yl)lJ" D: o~ h."1001 • Change the Ualue Message to 1001. I8Ic ....... I:I .... D:~ ~;I;.n. Yid ,1o •• CCIhoa."nieg Ue Kt'h ht: uBltountt'so pna nTei tilnef oto w Pinicdtouwre, . .. .-!0O8IS.T·l .".o.. .. . 1.:1.: ......... ... vAoo_l ... ... .l. ". .._.... ,011 • R•" f"-" ... 1 ·1 u...... 0.1.: ~, vw" ... ~ The bU1\on will now ,~ay Picture ... and will no longer be H"'_.B;u:~E:=~\J II. .... c_,. ... :lo I disahl(~(L AI,,,,"), whcn it is clicked in your :lpplication, it will H .._ s ... : IT:::] IT:::] v_. ....r e-: 10 I broadcast:l message with a v:llue of 1001 to :my listeners. IT:::] IT:::] $1_. ..4 $ ... , Now let's add a new view, ~ • Close Ule view (-.'(liting window for the Pi(.1Willdow lWindow. Figure I. tbe ;'1/0 wi"doUi for tbe Piclllre Selector w;"duw. • Select New Resource from tile Edit menu. • When tilt: vicw naming dialog appears. make SlIri:: lWindow is selected from the popup menu, type Pic, Next, you'll CR':lte the four items thai make up this new Selector (Child) in tl)(~ (!dil fieltl, and click the OK bUlton. view: Ihree rJdiu huttons and .. mini·picture rr:lllle. A new view editing window will appe:lr. Refore we :ttJd • I)rJg ,111 LSldltldiollullon frol1l the palette window onto tht: any il('ms to the new view, d1.1nge the view's ID 10 2000. 1'ic.1Urc SeIi..'<.1or window. .. Douhle-chck the new rJdio 001100. • Clo.'. > C the vieW (."(titing window. .. When the info window lIPpe:U!'i, I.:hange il'i scllings to m:udl • SelL-ct lWindow 12B in the master view list. then sck--ct those shown in Figure 2. Resource Info from Ihe Edillocnu. .. Cln...c the info window. • Change the Resource 10 from IW to 2000. .. Clu'i(.' the resource info window. a--.,. .. DOllblc-click on the l'i(.1 Sdl.."(_1or view in Ihe master view list. t. S--Vhrw, 0'. A lIiew l..'C.Iiling window for IItew 2000 will appear. Olof\ O~\ OBollom Nute: Greg Dow u:-;t.".'! ;1 numbering conwntion 111:11 I'll try 10 Sli(;k 10 To~\ [I !81 0.. ... 104 to fmlll now Oil, lie numbers all his new vkws hy thousands. 10 T",,\ -.st..,t 181 'h<1II1to So his views have lOs likl~ 1000, 2000, 3000, elC. The items CI." IO:~ within :1 view Man at om! plus the vil..'w IlJ, l1"Iat means 111.1t Ihe R. .... -11t1to:1"'" i!em.~ in thi,.. new view will he numbered 2001, 2002, 2003, (.1C. If v._ ~1200~.EEJIO ~,~••; ;; _: ;;;;_:;;- ----::=~ you have groups of ill.'Ilts (like r:iI.!io hutton.,>, for ex:unplc), you """'.At'": v._, Oa.. E:J mighl w;mt to leave holes in your numbering scheme. For .. ifl.l T .., ,\ Tulu I): ex:unple. you might number your radio buttons 2001, 2002, and @Off c..o\""lll.fC_:~ 2003. tiK11 sun the next set of itelTL'o with 2010, 2011, 2012. As alw:l)'s, pit.'k a -";'herne you like and Iry to be consistent. Hgllre 2. 1be ;"/0 un,/dulV Jor the 511" radiO buIlO". .. Double-click on the window inside the view editing .. Dr.lg a ,'iI..'Cond L"ildRadioUullon from the p:lleul! window window. onto the Picture &\("Clor window. .. when the info window appc:lrs, ch.1nge its settings to m:ltch tlK>SC :-;hown in Figure I. .. Double-click the new r:ldiu hutton, .. Wh(m the inro window apl)e'Jrs, change its senin)..:s to match .. Close the info windnw. !lto,<;c shown in Figure 3. • Close the info window. II 1996 PO'«'I'WPI.Att.'T ANI) MODP.I.fSS CIIIID WI~t)()'-XIS MAcT~:C:lIMAGAZINE • JAN! ... MY