Re: Storing C objects (structs) in NS Containers?
Re: Storing C objects (structs) in NS Containers?
- Subject: Re: Storing C objects (structs) in NS Containers?
- From: Óscar Morales Vivó <email@hidden>
- Date: Mon, 12 Jul 2004 20:35:40 +0200
You can only put objects descended from NSObject in an NSContainer
(simplification I know, but true enough for answering this question).
You can wrap the struct in an NSData object, or in a custom-made object.
That's all my wisdom for today :P
On 12 Jul 2004, at 20:17, Cody Garvin wrote:
Is it possible to store C Structs in a NSContainer...
For example, I want to store NSRect into a NSMutableArray.
Do I have to use a normal C Array to do this? I know that when you add
an
object to NSMutableArray it sends a retain message to the object that
is
being added, but is there a way to force it any way?
_______________________________________________
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.
_______________________________________________
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.