Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!ads.com!killer!usenet From: anders@verity.com (Anders Wallgren) Newsgroups: comp.sys.mac.programmer Subject: Re: GetNamedResource and cicn Message-ID: <1991Mar8.014532.4519@verity.com> Date: 8 Mar 91 01:45:32 GMT References: <1991Mar06.143904.23891@tkk.tele.fi> Sender: usenet@verity.com (USENET News) Reply-To: anders@verity.com (Anders Wallgren) Distribution: comp Organization: Verity, Inc., Mountain View, CA Lines: 21 In-Reply-To: jopa@tkk.tele.fi (Jorma Paananen TKK-tt) From IM-V, page 76: "The GetCIcon function allocates a CIcon data structure and initializes it using the information in the resource type 'cicn' with the specified ID. ... "Since GetCIcon creates a new CIcon data structure each time it is called, your application shouldn't call GetCIcon before each call to PlotCIcon..." ------ Interpreted, this means: you _must_ load the icon by calling GetCIcon once and _only_ once, before calling PlotCIcon. Since I really wanted to load my icon by name, I think worked around this limitations by using the name to find the 'cicn' resource and then took the resource id of that and created the CIcon with GetCIcon. anders