Skip to content
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

Add removeObserver:fromObjectsAtIndexes:forKeyPath:context: method #330

Merged
merged 7 commits into from
Oct 8, 2023

Conversation

gcasa
Copy link
Member

@gcasa gcasa commented Oct 1, 2023

Add new methods and some tests for KVO.

@@ -1325,6 +1325,13 @@ - (void) removeObserver: (NSObject*)anObserver
[iLock unlock];
}

- (void) removeObserver: (NSObject*)anObserver
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have this method here? We don't define the method without context neither and we also don't have the corresponding add methods.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't belong there... I discovered the method should only exist where I have it implemented now, as a category on NSArray.

@gcasa
Copy link
Member Author

gcasa commented Oct 4, 2023

@fredkiefer @rfm The tests are passing now. One of the url tests seems to fail intermittently.

@gcasa gcasa force-pushed the NSKeyValueObserving_issue327 branch from 9b5d853 to 1aa2126 Compare October 7, 2023 11:16
@gcasa gcasa force-pushed the NSKeyValueObserving_issue327 branch from 39469c9 to 19cfd59 Compare October 8, 2023 00:51
@gcasa
Copy link
Member Author

gcasa commented Oct 8, 2023

@rfm @fredkiefer any added feedback?

Copy link
Contributor

@rfm rfm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine to me.

@gcasa
Copy link
Member Author

gcasa commented Oct 8, 2023

This looks fine to me.

Thanks. :)

@gcasa gcasa merged commit e58b83c into master Oct 8, 2023
9 checks passed
@gcasa gcasa deleted the NSKeyValueObserving_issue327 branch October 8, 2023 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants