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

CLSegmentedView setViewSize: unrecognized selector sent to instance #29

Open
1am opened this issue Apr 10, 2012 · 2 comments
Open

CLSegmentedView setViewSize: unrecognized selector sent to instance #29

1am opened this issue Apr 10, 2012 · 2 comments

Comments

@1am
Copy link

1am commented Apr 10, 2012

Hi
Please pull the changes from https://github.com/appunite/CLCascade/pull/26/files#diff-10 - the readonly attribute causes the application to crash when i tried try to add a new subview with the controller inheriting from CLViewController.
When i removed the attribute the view was added as it should.

The output from the debugger looked like this:```
2012-04-10 13:45:04.746 MyApp -[CLSegmentedView setViewSize:]: unrecognized selector sent to instance 0xb3b5390
2012-04-10 13:45:04.748 MyApp *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CLSegmentedView setViewSize:]: unrecognized selector sent to instance 0x6bfb8b0'

@emilwojtaszek
Copy link
Member

please check master, i've added CLSegmentedView+Extension

@1am
Copy link
Author

1am commented Apr 11, 2012

The problem is still there. When i remove readonly from https://github.com/appunite/CLCascade/blob/master/src/Cascade/Other/CLSegmentedView.h#L67 it starts to work correctly. Seems like the +Extension does not override readonly attribute.
Adding readwrite to https://github.com/appunite/CLCascade/blob/master/src/Cascade/Other/CLSegmentedView%2BExtension.h#L12 does not help so it seems that removing readonly is the only way to solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants