Re: Qustion about possibly bad advice in NSView documentation
Re: Qustion about possibly bad advice in NSView documentation
- Subject: Re: Qustion about possibly bad advice in NSView documentation
- From: Uli Kusterer <email@hidden>
- Date: Wed, 26 Sep 2007 23:33:30 +0200
Am 26.09.2007 um 03:52 schrieb Scott Ribe:
As for NSInvocation, obviously you can use NSInvocation to pass
arguments of pretty much any type you like.
As long as they're 8 bytes or smaller? And yes, I think that means
they
won't work with NSRects either. I ran into this with some C++
integration;
solution was to pass pointers instead of values...
That's not a limitation of NSInvocation. That's how the ABI works
under the hood: structs 8 bytes or smaller get pushed on the stack
directly, while everything else is passed by reference. See
<http://developer.apple.com/documentation/DeveloperTools/Conceptual/
LowLevelABI/Articles/IA32.html>
for all the gory details.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden