Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!clyde.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!mips!smsc.sony.com!dce From: dce@smsc.sony.com (David Elliott) Newsgroups: comp.sys.mac.programmer Subject: Re: amateur programming questions Message-ID: <1991Feb19.185229.183@smsc.sony.com> Date: 19 Feb 91 18:52:29 GMT References: <1991Feb14.165107.7828@umiami.ir.miami.edu> Sender: dce@smsc.sony.com (David Elliott) Reply-To: dce@smsc.sony.com (David Elliott) Organization: Sony Microsystems, San Jose, CA Lines: 20 In article <1991Feb14.165107.7828@umiami.ir.miami.edu>, dweisman@umiami.ir.miami.edu (Ordinary Man) writes: |> As you've mentioned, you create the 'ICON' resources with ResEdit and |> remember (write down) the ID's of them. Then just load it (them), make |> a rect to put it in a window, and plot it (them). Don't forget to set the |> port of the window to draw in, though. Why is it that people tend to use ID numbers instead of using names to identify resources? In working on a TCL application, I noticed that there were no builtin ways to, for example, tell CWindow to use a named resource. Instead, I had to convert the name to the resource ID myself, and hand that to the creation routine. -- ...David Elliott ...dce@smsc.sony.com | ...!{uunet,mips}!sonyusa!dce ...(408)944-4073 ..."His lower lip waved poutily with defiance..."