Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
0 votes
0 answers
59 views

I can't figure out why variable number is not being assigned to array self.items. In the debugger it is showing value of NULL. -(void)pushItem:(double)number{ [self.items addObject:[[NSNumber ...
Richard Noble's user avatar
0 votes
0 answers
52 views

In Python, the expression 2*[a,b,c] (with a,b,c variables) is meaningful, and returns [a,b,c,a,b,c]. Also, in Python, lists (or arrays) are mutable by design. It is easy enough to write a category on ...
CocoaNut's user avatar
0 votes
1 answer
56 views

I have corrupted a single object in a file. When I load in the file, one of my mutable arrays (1) contains another mutable array (2) (loaded from the same file) which is uninitialized. When I try to ...
Carl Carlson's user avatar
0 votes
0 answers
48 views

I have 2 objects in an NSMutableArray one is a CBPeripheral object and the other is an NSString. Here you can see that the NSMutableArray contains the two objects: Then, in line 1249, I try to assign ...
KiloOne's user avatar
  • 334
0 votes
1 answer
332 views

How can I properly read the data from a mutable array in Swift from a Kotlin Module? Kotlin Shared Module: data class Tape(private val capacity: Int) { val reel: MutableList<Char> ...
Travis Baksh's user avatar
-1 votes
1 answer
88 views

On my iOS app, I need to look through one of the document directories which has stored multiple created PLISTs. Each PLIST simply contains an Array of names. What I need to do is for each PLIST, get ...
user717452's user avatar
1 vote
1 answer
75 views

I'm trying this, but it looks like it's not right, are there any options? Thank you NSMutableArray *copyy = [[NSMutableArray alloc] initWithCapacity:8]; for (int i = 1; i < copyy.count; i++) { ...
juicexxx's user avatar
0 votes
0 answers
50 views

I've seen a lot of examples, but I still havn't managed to get mine working. I have 1 array I'm populating from NSUserDefaults. Everything works as it should. However I wanted the ability to move a ...
ChrisOSX's user avatar
  • 744
1 vote
2 answers
782 views

I'm trying to subclass NSMutableArray in Swift to provide bridge functionality for a Swift array to some old Objective-C codebase. However, I can't find a functional example and all my attempts have ...
Wolfy's user avatar
  • 1,465
1 vote
0 answers
70 views

I have a table view which goes city => building type => calculation. Excerpt of code below. I want to add additional view at front so it goes region => city => building type => ...
BTSK 's user avatar
  • 11
0 votes
1 answer
36 views

I'll have to work with millions of representations stored as indexes in multiple NSArray objects or NSMutableArray objects. Which one of these classes takes up the least memory?
Vulkan's user avatar
  • 1,086
0 votes
1 answer
133 views

I have two NSMutableArray: let value = data as NSDictionary let array_item : NSArray! = (value.value(forKey: "mids") as! NSArray) if let array = array_item { ...
simojo's user avatar
  • 13
0 votes
1 answer
43 views

I have this this code to edit/delete car - (void)dismissViewWithIndex:(NSInteger)index selectedVehicle:(NSInteger)selectedVehicle toDelete:(BOOL)toDelete { if (toDelete && [self.cars count]...
Jann's user avatar
  • 15
-1 votes
1 answer
1k views

Am new to swift and am using an array of multiple dictionaries. So i want to change the value of a particular key. Please guide me how to achieve it : Values In Array :- [ { "Start":"2:...
Hemant Garg's user avatar
0 votes
1 answer
1k views

I have a static library writen in Objective C where I have a protocol to get the callbacks of monitoring for regions results. @protocol ScanBeaconsDelegate <NSObject> @required - (void) ...
Kepa Santos's user avatar
0 votes
1 answer
710 views

So, I have two ordered sets and things are structured in a way where one ordered set basically has a list of dictionaries and the other ordered set has strings that correspond with a certain value in ...
David West's user avatar
1 vote
0 answers
134 views

How can I record Stereo in iOS 14 Objective C here is my code I don't now how I will add AVAudioSessionPolarPatternStereo to my code I found the simple code for Swift but I need to add in my objective ...
MidDev's user avatar
  • 182
0 votes
1 answer
267 views

I have a list of json objects which I need to modify the values within each of them. I'm accessing this list of json objects in the below piece of code: if let json = try JSONSerialization....
Lewis Seddon's user avatar
0 votes
0 answers
47 views

I have declared array in SomeClass.h It's a global variable isn't it? @property (nonnull, nonatomic, retain) NSMutableArray *additional_tabs; Below I declared 2 function where I use this array. - (id ...
handzel's user avatar
  • 91
0 votes
1 answer
223 views

This is my code: NSMutableArray* notifications = [NSMutableArray arrayWithObjects:myObject.dictionary, nil]; After creating the NSMutableArray I do this: NSData *jsonData = [NSJSONSerialization ...
l000000l's user avatar
  • 330
0 votes
3 answers
120 views

I have Two NSMutableArray Array I want to combine this array in to old one array. How can i do this without any loop (for, while). NSMutableArray *oldArray = [[NSMutableArray alloc]init]; ...
sohil's user avatar
  • 848
0 votes
0 answers
48 views

I have an array of dictionary like below self->arrField: ( { fieldname = "Have you ever had any one of the following:"; fieldvalue = ( ...
Mihir Oza's user avatar
  • 2,798
0 votes
2 answers
88 views

So I have a small project with a table view. Its cells are populated from another view controller that saves the text/date to user defaults. Everything works, however, I'm looking to sort the table ...
ChrisOSX's user avatar
  • 744
-1 votes
1 answer
52 views

I am using NSMutableDictionary for storing data into key value pair and append these dictionary to NSMutableArray.I want to assign my filtered NSMUtablearray to another empty NSMUtablearray, but can ...
kinjal pipaliya's user avatar
0 votes
0 answers
180 views

I know, this is a very unusual thing to do, but I noticed that SwiftUI view won't update when a @State property is assigned from a pointer: struct ContentView: View { @State private var numbers: [...
Jay Lee's user avatar
  • 1,971
0 votes
0 answers
152 views

I'm currently migrating a project from Objective C to Swift 5.2. I have the following line in Objective C:NSMutableArray *arrNewList = [[responseObject objectForKey:@"Result"] mutableCopy];, which ...
Roberto Rodriguez's user avatar
1 vote
1 answer
200 views

I'm managing an old Objective-c Project that still uses Non Arc, I noticed in Fabric Crashlytics for EXC_BAD_ACCESS KERN_INVALID_ADDRESS crash in the application. This is the trace to the crash, I ...
YosiFZ's user avatar
  • 7,920
0 votes
1 answer
225 views

NSMutableArray containsObject returns true even the address and data is different. I've seen this post NSMutableArray containsObject returns true, but it shouldnt already but still I'm not finding ...
PrabaSaran's user avatar
0 votes
1 answer
145 views

My group and I are writing a space shooter game. We store the player and hazards in and NSMutableArray called objects. I just finished writing a function to control the players movement using tilt ...
Dane Warfield's user avatar
0 votes
2 answers
131 views

Here is my code and it fails to execute as noted below. I am trying to cast an object to my custom data type called UserData. First problem I have is don't understand how to get the value out of the ...
user1260085's user avatar
0 votes
1 answer
2k views

Below line of code is producing the error, let response1 : NSMutableArray = NSMutableArray.init(array: (JSON.object as! NSMutableArray).value(forKey: "media_list") as! NSArray) As the error says I ...
B.S. Dash's user avatar
0 votes
2 answers
427 views

I am using NSPredicate for search record from the tableView. Below is my code which I have implemented. -(void)updateSearchArray:(NSString *)searchText { if(searchText.length==0) { ...
Mihir Oza's user avatar
  • 2,798
1 vote
2 answers
77 views

I am getting below response from the one of the third party SDK, Now how to check that my String value is exist in the response? And the key I need to compare with friendlyName key. channelList = (...
Mihir Oza's user avatar
  • 2,798
0 votes
1 answer
440 views

I have an associated object on a view extension that contains an array (a mutable array in this case). var queue: NSMutableArray { get { if let queue = objc_getAssociatedObject(self, &...
Lorenzo B's user avatar
  • 33.4k
0 votes
1 answer
59 views

I have a NSMutableArray containing nsdictionary objects. `[ { "IId": 0, "BookSLNo": 0, "RollNoOrEmpId": "0", "BatchId": 38, "Batch": "NA", "UserId"...
Mahboob Nur's user avatar
1 vote
1 answer
57 views

I added an NSDictionary to NSMutableArray. for (TblFiles *objTblFile in visitorFilesArray) { NSData *fileDataTemp = [[NSData alloc] initWithContentsOfURL: [NSURL URLWithString: objTblFile....
phani's user avatar
  • 130
0 votes
1 answer
614 views

I'm using the ArcGIS 100.6 iOS SDK and am populating the map with markers on a Graphics Overlay Layer whose locations are stored in a database common to all users of my application. Each marker is ...
G. Steve's user avatar
  • 2,879
0 votes
1 answer
225 views

I am fetching some data from my Objective C classes. Here is my 'dataArray' data: Optional(<__NSArrayM 0x2818cff60>( { date = 1574164423; shakeState = 1; }, { date = 1574164431; ...
Anand Gautam's user avatar
  • 2,569
0 votes
1 answer
60 views

Given the below code, in the first iteration the logs are displayed normally. For the second iteration the app crashes with the following error message: 019-11-07 09:54:08.156277+0100 xxxion[520:...
Amrmsmb's user avatar
  • 11.6k
0 votes
1 answer
224 views

How to create NSMutableArray in which objects follow protocol? For example in swift I can do something like: var array:[MyProtocol] = [] How to implement that in objC
Lev Polyakov's user avatar
0 votes
2 answers
1k views

I am wanted to make a search on NSMUtableArray with key values to catch the hole object not just an array of values so for example my NSMUtableArray return me {id : 1, name : x1} {id : 2, name : x2} ...
ElyMan's user avatar
  • 45
0 votes
1 answer
106 views

Hi everyone I'm working with a JSON file to populate a UITableView. The JSON file has two fields that I need to use: - "First name" - "region" The "region" fields must be assigned for the creation ...
kAiN's user avatar
  • 2,823
0 votes
2 answers
90 views

How do I get rid of the warning and not use [@[] mutableCopy]: //Incompatible pointer types assigning to 'NSMutableArray *' from 'NSMutableArray *' @protocol Coordinatorable <NSObject> @...
Marek H's user avatar
  • 5,652
1 vote
1 answer
125 views

I'm following WWDC 2017 where explains how to use UIViewPropertyAnimation to manage UIPanGesture on a ViewController. My project is entirely Objective C not Swift. I wanted to have a clarification ...
kAiN's user avatar
  • 2,823
-1 votes
1 answer
48 views

I need to get the minimum value (and its index) among objects inside an NSMutable double array. I get the minimum value correctly but I cannot get its index. A weird and very high number comes up. ...
jeddi's user avatar
  • 651
0 votes
1 answer
67 views

I have an NSMutableArray in which I am adding objective and storing in user defaults, but while adding it is crashing. if ([[NSUserDefaults standardUserDefaults] objectForKey:@"bssidObserverArray"]) ...
zack's user avatar
  • 147
0 votes
0 answers
136 views

I have an NSImage which I need to convert to an NSMutable Array of the same size. I originally converted an NSMutableArray to NSImage, resized, converted to CVPixelBuffer, and fed into a coreML ...
user3470496's user avatar
1 vote
0 answers
428 views

I am trying to load a 2d image stored as an NSMutableArray (of semi-random sizing), resize the array to 512x512, and then feed into a coreML model as an Image (Grayscale 512x512)for prediction. Is ...
user3470496's user avatar
1 vote
1 answer
57 views

Developing for MacOS, I have an NSMutableArray namesArray[] that contains 3 String objects. namesArray[] is represented in a tableView, where user can select multiple cells, each cell represents a ...
Fady E's user avatar
  • 346
2 votes
3 answers
1k views

I want to sort an array in ascending order. The dates are in string format Optional(["2019-07-08", "2019-07-09", "2019-07-10", "2019-07-11", "2019-07-12", "2019-07-02"]) I am trying using below code ...
user2786's user avatar
  • 716

1
2 3 4 5
107