• 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: Storing C objects (structs) in NS Containers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Using Search Kit from java-cocoa
  • Next by Date: Re: Determining if a method is a class or instance method
  • Previous by thread: Re: Storing C objects (structs) in NS Containers?
  • Next by thread: Editing image and saving to disk
  • Index(es):
    • Date
    • Thread