• 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: Data Structure to Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Data Structure to Data


  • Subject: Re: Data Structure to Data
  • From: "Kyle Sluder" <email@hidden>
  • Date: Fri, 18 Jan 2008 11:42:08 -0500

Why would CFData dereference the pointer?  You're telling it "copy the
bytes at this address".  Those bytes happen to be three unsigned ints,
a 255-byte array, and a pointer to an unsigned int.  It's doing
exactly what you asked: copying the pointer.  If it did anything else,
what you got out of the object would not be what you put in.

By the way, what do you mean the pointer goes null: *pixels (aka
pixels[0]) == NULL, or pixels == NULL?  Are you dereferencing the
pointer on the same thread, in the same process, on the same machine?
Why aren't you just using an object for this?

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: Data Structure to Data
      • From: "Bruce Johnson" <email@hidden>
References: 
 >Data Structure to Data (From: "Bruce Johnson" <email@hidden>)
 >Re: Data Structure to Data (From: "Kyle Sluder" <email@hidden>)
 >Re: Data Structure to Data (From: "Bruce Johnson" <email@hidden>)

  • Prev by Date: Re: System preferences panes on Leopard
  • Next by Date: Terminating another application.
  • Previous by thread: Re: Data Structure to Data
  • Next by thread: Re: Data Structure to Data
  • Index(es):
    • Date
    • Thread