Questions tagged [nstaggedpointerstring]

7 questions
4
votes
1 answer

Get value of NSTaggedPointerString

I'm trying to debug my program, and I have a dictionary that I'm trying to inspect in the debugger; however, when I view the dictionary in the debugger, it looks like this: Most of the keys are listed as NSTaggedPointerString and I'm not able to…
BlackHatSamurai
  • 23,275
  • 22
  • 95
  • 156
3
votes
2 answers

Could not cast value of type 'NSTaggedPointerString' (0x10146ecd8) to 'NSNumber' (0x102675600)

I am trying to make a loop in my code like this: for row in rows! { print("Row",row) let pin = Pin.init(latitude: row[0] as! Float, longitude: row[1] as! Float, pinType: row[2] as! String, beaconID: row[3] as! Int, altitude: row[4]…
Nyein Ei Ei Tun
  • 168
  • 2
  • 13
3
votes
1 answer

Convert NstaggedpointerString to int

actually i have used this code for converting NstaggedpointerString to string NSString *index = [responseSelectedAvailibility[i] valueForKey:@"day"]; NSLog(@"String %@",index); int indexDayValue = (int)index; NSLog(@"…
Mad Burea
  • 531
  • 8
  • 22
1
vote
0 answers

EXC_BAD_ACCESS (code=1, address=0x18) and -[NSTaggedPointerString objectForKey:]: unrecognized selector sent to instance 0x8000000000000000

In Xcode, Swift language. I have a class (Class3) which contains only variables, not functions and other things: class Class3 { var x:Int = Int() var y:String = String() .... } Then another class (Class2) which contains @Published variables and…
1
vote
1 answer

Getting NSTaggedPointerString but expecting String - how to resolve in Swift 3?

I have a function in Swift 3 that gets metadata from MPMediaItems - in this case Podcasts. The problem is that for some older Podcasts, when I retrieve a metadata Key instead of getting a String I get an NSTaggedPointerString which is essentially…
wayneh
  • 4,393
  • 9
  • 35
  • 70
0
votes
1 answer

Why concurrently setting ivar makes bad access error?

I want to directly assign value to an ivar of class concurrently. I know there will be problem using setter method (self.target = ...) since ARC inner retain and release stuff for strong property. But I'm trying to use ivar. Is it because the…
0
votes
3 answers

Looking for sort drop down list in swift

I'm looking for sort my dropdown list into ascending order. let set = NSSet(array: arrTemp as! [Any]) let arrNewPredicated = set.allObjects as NSArray arrAllArrayCode = NSMutableArray (array: arrNewPredicated) I have 17 elements that looks like…
jo7332
  • 9
  • 2