home.social

#nsimagerep — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #nsimagerep, aggregated by home.social.

  1. NSCopyObject, the griefer that keeps on griefing

    NSCopyObject is a very old Foundation function - pre-dating Mac OS X entirely; from the NeXT era - that was originally basically just memcpy, but now it's complicated. A lot more complicated.

    What NSCopyObject does

    Its implementation currently starts with essentially:

    id NSCopyObject(id object, NSUInteger extraBytes, NSZone *zone) {

    if (nil == object) {

    return nil;

    }

    id copy = object_copy(object, extraBytes);

    object_setClass(copy, [...]

    wadetregaskis.com/nscopyobject

  2. NSCopyObject, the griefer that keeps on griefing

    NSCopyObject is a very old Foundation function - pre-dating Mac OS X entirely; from the NeXT era - that was originally basically just memcpy, but now it's complicated. A lot more complicated.

    What NSCopyObject does

    Its implementation currently starts with essentially:

    id NSCopyObject(id object, NSUInteger extraBytes, NSZone *zone) {

    if (nil == object) {

    return nil;

    }

    id copy = object_copy(object, extraBytes);

    object_setClass(copy, [...]

    wadetregaskis.com/nscopyobject

  3. NSCopyObject, the griefer that keeps on griefing

    NSCopyObject is a very old Foundation function - pre-dating Mac OS X entirely; from the NeXT era - that was originally basically just memcpy, but now it's complicated. A lot more complicated.

    What NSCopyObject does

    Its implementation currently starts with essentially:

    id NSCopyObject(id object, NSUInteger extraBytes, NSZone *zone) {

    if (nil == object) {

    return nil;

    }

    id copy = object_copy(object, extraBytes);

    object_setClass(copy, [...]

    wadetregaskis.com/nscopyobject