[Pythonmac-SIG] Re: GetScrap -- use of?
Jack Jansen
Jack.Jansen@cwi.nl
Wed, 24 Feb 1999 10:19:17 +0100
Recently, "Joseph J. Strout" <joe@strout.net> said:
> At 11:43 AM -0800 02-22-99, Mike Byrne wrote:
>
> >I ran into this, too. You have to make a "dummy" resource, and then you
> >access the results with the "data" field....
> >
> >def scrapString():
> > TheScrap = Res.Resource("")
> > Scrap.GetScrap(TheScrap, 'TEXT')
> > return TheScrap.data
Oops, Mike is right, Resource needs an empty string parameter.
> Jack, any reason we don't have a NewHandle() function? And, how about
> supporting "None" for the first parameter to GetScrap, as a null handle?
The "None" parameter wouldn't be very useful, as you wouldn't be able
to retrieve the data gotten from the scrap...
--
Jack Jansen | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@cwi.nl | ++++ if you agree copy these lines to your sig ++++
http://www.cwi.nl/~jack | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm