On Jun 21, 2010, at 7:06 AM, julius wrote: > Inside MyControl define three pointers of type CGFloat , e.g CGFloat * mem1, > mem2, mem3; > and declare them as @property GFloat * mem1; etc with corresponding > @synthesize statements. > Declare a MyControl method that allocates memory to mem1 etc, e.g. > self.Mem2 = (CGFloat *)NSAllocateCollectable((sizeof(CGFloat) * > 22000),NSScannedOption);
I believe you need to add a __strong qualifier to your pointers (i.e., __strong CGFloat * mem1;), to prevent them from being collected. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com