Re: The cost of using objects rather than plain C variables
Re: The cost of using objects rather than plain C variables
- Subject: Re: The cost of using objects rather than plain C variables
- From: Mike Abdullah <email@hidden>
- Date: Mon, 08 Jul 2013 20:32:06 +0100
On 8 Jul 2013, at 18:14, Andy Lee <email@hidden> wrote:
> On Jul 8, 2013, at 1:08 PM, Boyd Collier <email@hidden> wrote:
>> Your suggestion sounded worth learning about, but it appears that there's no such creature as NSPointerValue.
>
> I'm guessing Jens meant +[NSValue valueWithPointer:].
>
>> Did you perhaps mean NSPointerArray?
>
> I'm guessing not, since NSPointerArray is for containing an array of objects (like NSArray does), not scalars.
NSPointerArray is perfectly happy with — and designed for — non-objects, provided they're the same size as a pointer.
_______________________________________________
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