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: Gregory Weston <email@hidden>
- Date: Mon, 12 Jul 2004 17:40:10 -0400
On Jul 12, 2004, at 2:35 PM, Cody Garvin wrote:
Is it possible to store C Structs in a NSContainer...
Not directly. In general, I'd say this sound like a job for NSData.
But...
For example, I want to store NSRect into a NSMutableArray.
NSRectFromString: Returns a rectangle from a text-based representation.
NSRect NSRectFromString(NSString *aString)
NSStringFromRect: Returns a string representation of a rectangle.
NSString *NSStringFromRect(NSRect aRect)
G
_______________________________________________
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.