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

Calling [TKCalendarMonthView didSelectDate:] does not result in callback to delegate's calendarMonthView:didSelectDate: #23

Closed
gcarrillo opened this issue Oct 27, 2010 · 2 comments

Comments

@gcarrillo
Copy link

When selecting the date programmatically from a TKCalendarMonthTableViewController subclass, a call such as:

[self.monthView selectDate:self.selectedDate];

does not result in execution entering that subclass's definition of calendarMonthView:didSelectDate:.

@gcarrillo
Copy link
Author

Here is a patch that I used to achieve the behavior I believe to be correct:

http://damiancarrillo.org/pastebin/WC3p9PwF

@gcarrillo
Copy link
Author

After further review, the existing behavior is consistent with the behavior of Cocoa classes in general, as exemplified by the following comment in UITableView's selectRowAtIndexPath:animated:scrollPosition: "discussion" section:

"Calling this method does not cause the delegate to receive a tableView:willSelectRowAtIndexPath: or tableView:didSelectRowAtIndexPath: message, nor will it send UITableViewSelectionDidChangeNotification notifications to observers."

I am therefore closing this issue.

This issue was closed.
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

1 participant