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.
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 mails | Author | Date |
|---|---|---|
| Matthew Smith | Nov 2, 10:33 | |
| Nicholas Riley | Nov 2, 16:24 | |
| ssudre2 | Nov 2, 16:44 | |
| Finlay Dobbie | Nov 2, 16:54 | |
| ssudre2 | Nov 2, 19:17 | |
| Matthew Smith | Nov 2, 23:22 | |
| Matthew Smith | Nov 2, 23:25 | |
| Andrew Pinski | Nov 3, 08:43 |






Cocoa mail archive

