• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: The cost of using objects rather than plain C variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: The cost of using objects rather than plain C variables (From: Boyd Collier <email@hidden>)
 >Re: The cost of using objects rather than plain C variables (From: Andy Lee <email@hidden>)

  • Prev by Date: Leak when "drawing too fast"
  • Next by Date: Re: NSOutlineViews and Mountain Lion
  • Previous by thread: Re: The cost of using objects rather than plain C variables
  • Next by thread: Re: The cost of using objects rather than plain C variables
  • Index(es):
    • Date
    • Thread