Delta-NC
Jan 30, 2009, 06:55 AM
Just getting myself used to coding the Mac way (and with MVC) and for practice I made a wee app to read a few RSS feeds with a TabBar app.
Initially I had three separate table views and three classes to go along with it. Once that worked I realised I could simply recycle the same nib with each class, and did so.
Noticing that I have a lot of repeated code within three separate classes I then went about trying to achieve the same results with a single class, simply changing the feed location string.
This is where I've hit a problem and I've been stuck for an hour or so thinking about it. Is there any way to tell which tab has been pressed in the super view? What would be the best way to go about this? I feel that my lack of MVC experience may be causing me to miss something obvious.
Thanks in advance for any advice.
Initially I had three separate table views and three classes to go along with it. Once that worked I realised I could simply recycle the same nib with each class, and did so.
Noticing that I have a lot of repeated code within three separate classes I then went about trying to achieve the same results with a single class, simply changing the feed location string.
This is where I've hit a problem and I've been stuck for an hour or so thinking about it. Is there any way to tell which tab has been pressed in the super view? What would be the best way to go about this? I feel that my lack of MVC experience may be causing me to miss something obvious.
Thanks in advance for any advice.
