[comp.sys.mac.programmer] cdev and owned resources

schorsch@oxy.edu (Brent William Schorsch) (04/19/91)

Ok, I am writing a cdev and would like some input from people who have
more experience than I.  My question: is it a problem if within the
code of my cdev I use resource ID's that are not considered "owned
resource" ID's:  for example, I call GetNewDialog(256, ...) and
modaldialog without a problem...  However, I have problems when reading
non dialog stuff (DITL, DLOG).	I can't get the List Manager to load
my LDEF (even when I use an ID within the cdev range) when I pass it the
ID.  I can't seem to load resources (via ID) of my own information.

Do I need to be conforming to the "owned resource" method of computing
ID's using the Control Panel's refnum?	I have workaround for everything
so far, but would like to know if they are potentially dangerous...

Thanks...   reply to: schorsch@tiger.oxy.edu