[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

collections of primitive types

From: Travis Griggs
Subject: collections of primitive types
Date: Fri, 28 Feb 2003 10:26:24 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1

It looks like I'll have to do my own high res time object, hopefully these tutorials will elucidate how I build up a reusable library of such objects, and what the common conventions are for doing so. So, I'm on to my next question...

NSArray looks fine for storing objects. But quite often I want an array of floats or ints. What's the general approach? Do I box up the primitive numbers in objects and use NSArray? Is there a FloatArray or IntArray thing? Write my own?

And why can't NSArray hold nil's? I thought nil was an object in Objective-C and that you could send messages to it.

Travis Griggs
Key Technology
One Man's Pink Plane is Another Man's Blue Plane

reply via email to

[Prev in Thread] Current Thread [Next in Thread]