tags:

views:

37

answers:

2

i have an array of these words between spaces "gbpjpy buy 132.00/15 131.95 update close at 132.40 close at 132.40 120+ gbpjpy buy 132.00/15 131.50 45 new 90 120+ gpbusd buy update HIT 40 PIPS HIT 110 PIPS gpbusd buy BREAK EVEN update HIT 100+ gpbusd buy 1.5500/25 1.5455 new 40 100+ gpbusd buy update CLOSE 0 TO 10 PIPS N gpbusd buy 1.5335/50 1.5320 new 40 80+ gpbusd buy update 15-20 PIPS CLOSE KEEP OPEN gpbusd buy 1.5530/50 1.5505 update HIT 80 KEEP OPEN gpbusd buy 1.5530/50 1.5465 new 40 80 100+"

         i this array some words are uneccessary and i want to remove them .and their are numbers which i want to store in other array or dictionary for eg. some numbers are for "buy"like"132.00 ,1.5530 etc" and some are for sell or update etc .i want to remove the unnecessary items from array and extract similar objects for sell or buy etc in some other array or dictionary? after that i want to show the extracted objects depending upon their type in a table like "sell numbers under cell colum" etc ?can anybody tell a proper way to do this ?

alt text

+3  A: 
[yourArray removeObject:@"object"];

yourArray must be muttable

GameBit
+2  A: 

or you can do this also [yourArray removeObjectAtIndex:index]; look at the header files of NSArray and NSMutableArray.

Aji