• 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
my arrays are being deallocated, and i dky
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

my arrays are being deallocated, and i dky


  • Subject: my arrays are being deallocated, and i dky
  • From: myah payne <email@hidden>
  • Date: Sat, 17 Jul 2004 17:07:53 -0500

I have a class that is in obj-c++ and several structs predefined. The main one is called MODEL. It consists of f pointers for each of the other kind of structs. and an int to keep track of how long the array of other sturcts is. Basically I say:

faces = new Face[numberOfFaces];

now this setup worked before when i was dealing with just one MODEL; but now i want to put my MODELS into a NSNutableArray. So I am using NSData to wrap the MODEL data and storing the NSData Object. When the MODEL is needed later, the model's values are correct in that pointers still have the same address. But the data that they were pointing is long gone. I'm not sure why this is happening when before they worked. IVe only changed the interface to the data, not the data code itself.

As an asde maybe anyone knows a nice cocoa way to store some 8k floats without too much over head.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: my arrays are being deallocated, and i dky
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Cocoa Bindings and commit editing changes
  • Next by Date: Re: Cocoa Bindings and commit editing changes
  • Previous by thread: Re: Cocoa Bindings and commit editing changes
  • Next by thread: Re: my arrays are being deallocated, and i dky
  • Index(es):
    • Date
    • Thread