Re: BOOL array
Re: BOOL array
- Subject: Re: BOOL array
- From: Jason Coco <email@hidden>
- Date: Tue, 9 Sep 2008 12:02:57 -0400
On Sep 9, 2008, at 06:24 , Alex Reynolds wrote:
I am currently putting 320 to 480 character long NSString *
instances into an NSMutableArray. The characters are 0 or 1.
I guess I could use an int array, but I'm looking to speed up my app
and reduce storage. Is it possible to create a BOOL array that can
be put into an NSMutableArray?
You can use a BOOL array or an int array... or an array of uint8_t.
BOOL is just a signed char anyway. Just wrap the array in an NSValue
object when you put it into the NSMutableArray:
BOOL boolArrayOne[320];
/* ... */
NSValue *boolArrayOneAsValue = [NSValue valueWithPointer:&boolArrayOne];
Jason
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >BOOL array (From: Alex Reynolds <email@hidden>) |