New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong documentation of strong, weak and unsafe_unretained properties (Origin: bugzilla #677678) #4735

Closed
doxygen opened this Issue Jul 2, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@doxygen
Owner

doxygen commented Jul 2, 2018

status RESOLVED severity minor in component documentation for ---
Reported in version 1.8.1 on platform Other
Assigned to: Dimitri van Heesch

On 2012-06-08 07:36:59 +0000, Jean-Pierre Distler wrote:

Propeties with the new ARC keywords strong and weak were documented as assign properties.
Unsafe_unretained properties become retain in documentation

On 2012-06-09 11:24:26 +0000, Dimitri van Heesch wrote:

Indeed. I'll add support for strong and weak.

On 2012-06-10 09:41:51 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.1.1. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.

On 2012-06-11 06:24:47 +0000, Jean-Pierre Distler wrote:

Strong and weak is working but unsafe_unretained is still documented as retain.

On 2012-06-11 19:49:18 +0000, Dimitri van Heesch wrote:

I couldn't find anything about it in the official docs, but I'll add it.

On 2012-06-11 19:55:31 +0000, Jean-Pierre Distler wrote:

You can find it here https://developer.apple.com/library/mac/#releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html
it is used on iOS4 and (OS X 10.6 i think) because they doesn't support weak references.

On 2012-06-11 20:04:01 +0000, Dimitri van Heesch wrote:

I nowhere see it as being part of a property attribute, like so:

@Property (nonatomic, unsafe_unretained) NSNumber *yearOfBirth;

but I read somewhere that unsafe_unretained is defined as an alias for assign.

On 2012-06-12 04:40:52 +0000, Jean-Pierre Distler wrote:

Sorry the wrong documentation. Here you find it in section 4.1.1

http://clang.llvm.org/docs/AutomaticReferenceCounting.html

It's right unsafe_unretained and weak is like an alias for assign.
The difference between unsafe_unretained and weak is that
weak properties get nil when the object they store is released.
Unsafe_unretained properties remain as a dangling pointer.

On 2012-07-12 15:42:00 +0000, Dimitri van Heesch wrote:

This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.1.2. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment