Re: [Objectivelib-discussion] Looks like I might get to open the bidding :-)
Brought to you by:
will_mason
From: Will M. <wil...@us...> - 2005-07-22 18:48:16
|
Hi, Rod, How could we not be kind in responding to the first actual question posted to the list. To answer your question, you can't put simple data types in containers, just objects. Fortunately, Cocoa and GNUstep provide a convenient wrapper for primitive data types, NSNumber. You can do this: OLVector* v = [OLVector vector]; [v pushBack: [NSNumber numberWithDouble: 3.14]]; Check the docs for NSNumber to see how it works. Let me know if you need anything else, Will --- rodkirkpatrick <rod...@op...> wrote: > Hi > > Firstly a warning - newbie question coming - be kind :-) > > Are the standard data types and limits still there when using > containers or am I missing the point - for instance are floats and > ints still the same size ? > > Rod > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration > Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Objectivelib-discussion mailing list > Obj...@li... > https://lists.sourceforge.net/lists/listinfo/objectivelib-discussion > |