Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!gsbacd.uchicago.edu!gft_robert From: gft_robert@gsbacd.uchicago.edu (opcode ranger) Newsgroups: comp.sys.mac.programmer Subject: What do you do with 'replaced' Dialog items after SetDItem()???? Message-ID: <1991Apr17.081146.1@gsbacd.uchicago.edu> Date: 17 Apr 91 14:11:46 GMT Sender: news@midway.uchicago.edu (NewsMistress) Lines: 20 Let's say you have a dialog with an icon item. You want to change the icon to something else. So you do a SetDItem() with the Handle to the new icon (which you've read in thru GetResource()). OK, but what happens to the Handle to the old icon (which you can get prior to the SetDItem() with GetDItem())? That is, should I perform a ReleaseResource() on it after I to the SetDItem with the new icon Handle? If not, will the Dialog Manager do it for me? If so, what do I do with non-resource based dialog items? DisposeHandle()? Any info much appreciated! Robert ============================================================================ = gft_robert@gsbacd.uchicago.edu * generic disclaimer: * "It's more fun to = = * all my opinions are * compute" = = * mine * -Kraftwerk = ============================================================================ --