Re: Confusion with copyWithZone and Archiving

2016-02-29 Thread Graham Cox
> On 1 Mar 2016, at 10:24 AM, Doug Hill wrote: > > Given the amount of private implementation in NSView, my guess is that > copying an NSView yourself without super support would be > difficult/impossible in practice. However, I would be interested in others > with more information to give an

Is Core Data / NSAtomicStore only for data objects with IDs?

2016-02-29 Thread Daryle Walker
OK, I’m about to write a cool app. I’m thinking of using Core Data to handle the, well, data. I’ve been looking around for weeks on how to use NSAtomicStore to read/write data in “legacy formats.” I finally saw a guide by Apple today (referenced from the API page for NSAtomicStore). The classes

Re: Confusion with copyWithZone and Archiving

2016-02-29 Thread Doug Hill
> On Feb 29, 2016, at 2:37 PM, Graham Cox wrote: > > >> On 1 Mar 2016, at 1:58 AM, Dave wrote: >> >> @interface LTWBaseClass : NSView > > >> Do I need to call the super version of this method too? > > > > In general, yes. But NSView doesn’t conform to NSCopying, so there is no > super

Re: Confusion with copyWithZone and Archiving

2016-02-29 Thread Graham Cox
> On 1 Mar 2016, at 1:58 AM, Dave wrote: > > @interface LTWBaseClass : NSView > Do I need to call the super version of this method too? In general, yes. But NSView doesn’t conform to NSCopying, so there is no super to call. You’ll have to do all of the copying needed to copy the underlyin

Re: Confusion with copyWithZone and Archiving

2016-02-29 Thread Dave
Thanks Doug, I was looking in the wrong place! All the Best Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Re: Triggering UITableView's -didSelectRowAtIndexPath: delegate callback

2016-02-29 Thread Keary Suska
> On Feb 28, 2016, at 11:05 PM, Jens Alfke wrote: > > >>> On Feb 27, 2016, at 4:27 PM, Keary Suska >>> mailto:cocoa-...@esoteritech.com>> wrote: >>> >>> This results in a much more reliable and extensible decoupling since no >>> other object should know those internal signaling mechanics an

Re: Confusion with copyWithZone and Archiving

2016-02-29 Thread Doug Hill
From the NSCopying protocol reference: If a subclass inherits NSCopying from its superclass and declares additional instance variables, the subclass has to override copyWithZone: to properly handle its own instance variables, invoking the superclass’s implementation first. There are many other

Confusion with copyWithZone and Archiving

2016-02-29 Thread Dave
Hi, I have an inheritance chain Classes that are NSCoding and NSCopying compliant like so: @interface LTWBaseClass : NSView @interface LTWSubclassA : LTWBaseClass @interface LTWSubclassB : LTWSubclassA Each of these three classes contain properties that need to be archived and unarchived