Questions tagged [copywithzone]
34 questions
0
votes
1 answer
unexpected invoke copyWithZone c++ cocos2d
I have some trouble.
I made some interface (abstract class in c++). Implemented it in my class (derived from CCObject too).
In third class I try to invoke method of interface and got SIGABORT. Here the code
//interface class
class…

monstr
- 1,680
- 1
- 25
- 44
0
votes
2 answers
Problems with getting and changing NSMutableArray objects
I have a NSMutableArray called organisations which is an array of custom objects of a class I subclassed from NSObject, this subclass is called NSXOrganisation. This subclass DOES implement NSCopy like so:
@interface NSXOrganisation : NSObject…
user1527520
0
votes
1 answer
Copy of GKSession object implementing copyWithZone
I want to make a copy of a GKSession object and I implement copyWithZone as follow :
-(id)copyWithZone:(NSZone *)zone {
GKSession *kati = [[GKSession allocWithZone: zone] init];
kati=_currentSession;
return kati;}
Nevertheless I don't take…

Kostas
- 1,504
- 1
- 11
- 13
-2
votes
1 answer
copyWithZone in Swift3
I am trying to convert one function to newer Swift3 version but getting error. The action is happening in UICollectionViewLayoutAttributes class which is called CircularCollectionViewLayoutAttributes and class starts like:
class…

Rolandas
- 47
- 6