[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: collections of primitive types
From: |
Mondragon, Ian |
Subject: |
RE: collections of primitive types |
Date: |
Fri, 28 Feb 2003 13:13:45 -0600 |
travis,
typically, you'd wrap your numbers (whatever type they may be) in
NSNumbers, and then add them to an array. Float/Int/String/WhateverArray's
could easily be created (that's what someone did here at work a looooooong
time ago), however.
- ian
> -----Original Message-----
> From: Travis Griggs [SMTP:tgriggs@keyww.com]
> Sent: Friday, February 28, 2003 12:26 PM
> To: GNUstep
> Subject: collections of primitive types
>
> 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
>
>
>
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> http://mail.gnu.org/mailman/listinfo/discuss-gnustep