Tagged Questions
0
votes
2answers
119 views
access to array object
i create an array and i initialize it with objects. i tried to get access to the array object but i get a (null). what do i do wrong?
photoArray = [[NSMutableArray alloc] init];
PhotoItem ...
1
vote
4answers
10k views
Nested arrays in Objective-C ( NSMutableArray )
I'm trying to build a nested array: First, I make a "PlayerItems" array which will contain 10 arrays, each containing item objects, corresponding to the inventories of each player in the game. On the ...
0
votes
1answer
1k views
Mulitple Arrays From Plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
...
1
vote
3answers
2k views
iPhone: Return NSMutableArray in method while still releasing
I am trying to understand a little more about memory management. Knowing that I need to release anything that I have init or alloc'ed I am confused about the following:
- (NSMutableArray *)getData {
...
1
vote
2answers
1k views
Performance issues with NSMutableArray and NSArray
I've been programming C/C++ for 20 years but I'm new to objective-c and Coco and have some questions about the performance of NSMutableArray and NSArray.
I need an container much like the stl list ...
4
votes
1answer
145 views
creating a Mutable array that can be added to in later clicks of the same button?
General noob questions:
(1) How can I create an NSMutable array in a buttonClicked action that I can add more entries to during subsequent clicks of the same button? I always seem to start over with ...
3
votes
4answers
3k views
How can one sort an NSMutableArray of NSMutableArrays containing NSStrings?
Is there an easy way to sort an NSMutableArray of NSMutableArrays containing NSStrings?
I am sure that there must be an easy method for doing this but I can't seem to find it.
To Clarify I want to ...
1
vote
4answers
222 views
NSArray size and mutability
In Java, I commonly initialize arrays that are a specific size and then add and replace objects as my code goes on. In Objective C, I can't do that with an NSArray. Code that I have ported over from ...
0
votes
2answers
117 views
Return the count of an NSMutableArray from an XML id number in Objective-C?
I am building an NSMutableArray out of an XML file and need to return the count of each resident id in the XML file. Is it possible to do this?
<residents>
<resident id="1">
...
0
votes
2answers
166 views
How divide array and show in table view?
I am developing a table view. To fill that table i have an array of 75 content. Now i want to show table view like as when first time shown table view then show only 10 row of array and one button ...
0
votes
3answers
244 views
Objective-C appDelegate array
I'm creating a SQLite application, with two simple views. I have two arrays in SQLAppDelegate:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
NSMutableArray *tempArray = ...
0
votes
4answers
1k views
Objective C: What is the best way to create and use a dynamic boolean array?
I have been struggling with the best way of creating, accessing and updating values from a dynamic boolean array for more than a week now.
@interface myDelegate : NSObject
{
NSMutableArray ...