Skip navigation.
 
mlRe: hand cursors
FROM : Finlay Dobbie
DATE : Sat Nov 02 16:54:33 2002

On Saturday, November 2, 2002, at 03:44  pm, <email_removed> wrote:

>> I'm having trouble figuring out what could be easier than a function
>> call with a single argument.

>
> Being able to do it without adding an #include, maybe and converting a
> NSPoint to a CGPoint.


Good god, adding an #include? That's a whole extra line of code. What
an effort.

And as for NSPoint<->CGPoint, I have a vague recollection that they're
actually laid out the same way, so you can do
NSPoint myNSPoint = *(NSPoint *)(&myCGPoint); or similar

  -- Finlay
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlhand cursors Matthew Smith Nov 2, 10:33
mlRe: hand cursors Nicholas Riley Nov 2, 16:24
mlRe: hand cursors ssudre2 Nov 2, 16:44
mlRe: hand cursors Finlay Dobbie Nov 2, 16:54
mlRe: hand cursors ssudre2 Nov 2, 19:17
mlRe: hand cursors Matthew Smith Nov 2, 23:22
mlRe: hand cursors Matthew Smith Nov 2, 23:25
mlRe: hand cursors Andrew Pinski Nov 3, 08:43