I have created multiple classes, all of which need to implement the NSCopying protocol, but there are a lot of properties in my classes, is there an e ...
I have created multiple classes, all of which need to implement the NSCopying protocol, but there are a lot of properties in my classes, is there an e ...
Edit: I solved this problem by adding the process identifier that is exposed from the NSXPCConnection class as that is unique per connection as the k ...
I have an order processing application I'm working on for my employers that was originally designed to get all data about orders, products, and client ...
I'm trying to understand how the copy() function works in Swift 4. I have two classes which are structured like this: In my program I have an array ...
I noticed this today when playing with NSOutlineView and NSTableHeaderCell, but when this specific configuration is made, an error/warning(?) is print ...
I am trying to use swift NSCopy to do a deep copy of a GKGameModel's object, including all players and their wallet reference (containing Integers rep ...
whenevr I am copy the empObj to tempObj it's memory address is changed.I want to prevent this any idea? ...
I am trying to upgrade my app to Xcode 9.3.1 from 8 and have these errors: Expected method to read dictionary element not found on object of type ...
In the book Effective Objective-C 2.0: 52 Specific Ways to Improve Your iOS and OS X Program there is an Item 49: Use Toll-Free Bridging fo ...
Is there any way to use NSCopying without the returned object being of type Any? It always forces me to cast. This seems strange. I'm copying the obje ...
I am facing issue to clone an object in swift 3. I want to duplicate/clone an object then want to modify it's value so that modification doesn't refle ...
I have an object I know when I populate this object it is successful and all properties are initialized fully and correctly. However, when I pass ...
Since the switch to Swift 3.0, and along with it the change of NSDate to Date, the class no longer conforms to the NSCopying protocol. In Swift 2, th ...
I would like to add copy (Command + C) functionality to my NSTableView for a row (or multiple rows) that the user has selected. Based on what I read t ...
My question is simple: what is the best way to conform to the NSMutableCopying protocol on my own Swift class (possibly with some code explanation)? ...
I need to realize an interface that mimics MKMapView in some sense. Specifically, I need to support methods Internally there is a mapping which map ...
I am trying to copy an object, and I've implemented the NSCopying protocol, which looks like this: This is what my implementation file looks like: ...
I've always thought, that copy would just copy the object. In case of blocks, it's a bit different, but I'm really surprised how it works in following ...
I have many "model" objects whose properties are defined as "readonly" and shared among various components. In some cases I need to create local muta ...
In Swift 2.1, how should I create a class conforming NSCopying protocol? I tried this: But I hit the error of ambiguous user of value. What should ...