Top "Weak-references" questions

A weak reference is a one that makes no claim of ownership.

What's the difference between SoftReference and WeakReference in Java?

What's the difference between java.lang.ref.WeakReference and java.lang.ref.SoftReference ?

java reference weak-references soft-references
Always pass weak reference of self into block in ARC?

I am a little confused about block usage in Objective-C. I currently use ARC and I have quite a lot …

ios iphone objective-c automatic-ref-counting weak-references
How to use WeakReference in Java and Android development?

I have been a java developer for 2 years. But I have never wrote a WeakReference in my code. How to …

java android weak-references
Java: difference between strong/soft/weak/phantom reference

I have read this article about the topic, but I don't really understand it. Please give me some advice along …

java reference weak-references soft-references phantom-reference
What is the difference between a weak reference and an unowned reference?

Swift has: Strong References Weak References Unowned References How is an unowned reference different from a weak reference? When is …

swift memory-management automatic-ref-counting weak-references dangling-pointer
When would you use a WeakHashMap or a WeakReference?

The use of weak references is something that I've never seen an implementation of so I'm trying to figure out …

java weak-references
How do I declare an array of weak references in Swift?

I'd like to store an array of weak references in Swift. The array itself should not be a weak reference …

swift automatic-ref-counting weak-references nspointerarray
Why can the keyword "weak" only be applied to class and class-bound protocol types

When I'm declaring variables as weak in Swift, I sometimes get the error message from Xcode: 'weak' may only be …

swift variables weak-references
Using weak self in dispatch_async function

I read a lot of posts about using __weak self inside dispatch_async, and now I am a litle bit …

ios objective-c-blocks weak-references retain-cycle
Strong and weak references in Swift

In Objective C you can define a property as having a strong or weak reference like so: @property(strong)... @property(…

objective-c reference weak-references swift