Re: NSCopyBits tain't clear (its a little better now...)
Re: NSCopyBits tain't clear (its a little better now...)
- Subject: Re: NSCopyBits tain't clear (its a little better now...)
- From: Jerry LeVan <email@hidden>
- Date: Fri, 13 Dec 2002 15:07:58 -0500
Hmmm,
this code does the copy...
[self lockFocus];
NSLog(@"in doShift gstate=%d",[self gState]);
NSCopyBits([self gState],theRect,shiftTo);
[self unlockFocus];
Self is the view containing the rectangle I want to copy.
It appears that gState is always 0.
--Jerry
>
Hi,
>
>
Ok, I have a black filled rectangle inside of a subclassed view. I would like
>
to copy the rectangle to some other place in the view using
>
NSCopyBits. (just to see if I can...)
>
>
1) is this possible :)
>
2) the online documentation for NSCopyBits mumbles about NSNullObject, the
>
compiler gives an error if this value is used in the call.
>
>
My call looks like:
>
>
NSCopyBits(???,theRect, thePoint)
>
>
The rectangle "theRect" is my rectangle in the view coordinates, "thePoint" is
>
a point where I want to move the rectangle to. Tain't clear to me what
>
The "???" should be. (NSNullObject causes the compiler to croak.)
>
>
--Jerry
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.