Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2013-07-07-thread-safe-class-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ What's happening internally for any property that's not manually implemented is

```objc
objc_setProperty_non_gc(self, _cmd,
(ptrdiff_t)(&_userName) - (ptrdiff_t)(self), userName, NO, NO);`
(ptrdiff_t)(&_userName) - (ptrdiff_t)(self), userName, NO, NO);
```

The ptrdiff_t might look weird to you, but in the end it's simple pointer arithmetic, since an Objective-C class is just another C struct.
Expand Down