What is the best way to implement scrolling between views in OS X? These views are initialized from nibs with their view controllers, and they are the same type of class. To give some background, each view displays the corresponding data for the current date.
I would like to create a function that loads data for the next (or previous) date. I could just load the data into the current view, but can I do this with an animation similar to scrolling between spaces in OS X? I assume that I will have to initialize a new view, load the data there, and then initiate the transition to a new view.
I worry that the performance of creating all these new views will be pretty poor. Here are a few options that I considered to solve this problem:
- Create an NSDate Dictionary for MYViewController. Download and save each view from this hash map, but it can take a lot of memory.
- Create a doubly linked list of MYViewController and load / save sequentially viewed views. This can potentially take up a lot of memory, and if the user goes to the date, the caching will simply be deleted.
Any thoughts? If there is a way to download data in its current form, I feel this is the best option.
Thanks!
jp.rider63
source share