krzysztofzablocki / krzysztofzablocki/BehavioursExample

A circular reference!

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
56
Forks
13
PR merge metrics
No merged PRs in 30d

Description

I add the method in StrechyHeaderExampleViewController.m
- (void)dealloc
{
NSLog(@"Release Success");
}

It's never performed.

Then I change strong to weak in MultiplexerProxyBehaviour.h

@property(nonatomic, weak) IBOutletCollection(id) NSArray *targets;

And then dealloc method is performed.
So,what is the reason you used strong ?
Thank you

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with MultiplexerProxyBehaviour.h and StrechyHeaderExampleViewController.m, then trace how the IBOutletCollection targets are retained and released. Compare the deallocation behavior with strong and weak ownership, and confirm the intended lifecycle for the targets. Done means the ownership choice and resulting deallocation behavior are explained or resolved consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
objective-c
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.