public AppKit.NSView GetViewForItem (AppKit.NSTableView tableView, AppKit.NSTableColumn tableColumn, System.nint row)
		{
			if (viewModel.Tweets.Count < row)
				return null;

			TweetView view = (TweetView)tableView.MakeView (identifer, this);
			if (view == null) {
				TweetViewController c = new TweetViewController ();
				view = c.View;
				view.Frame = new CGRect (0, 0, tableView.Frame.Width, 0);
				view.Identifier = identifer;
			}
			view.Tweet = viewModel.Tweets [(int)row];

			return view;
		}
Example #2
0
        public AppKit.NSView GetViewForItem(AppKit.NSTableView tableView, AppKit.NSTableColumn tableColumn, System.nint row)
        {
            if (viewModel.Tweets.Count < row)
            {
                return(null);
            }

            TweetView view = (TweetView)tableView.MakeView(identifer, this);

            if (view == null)
            {
                TweetViewController c = new TweetViewController();
                view            = c.View;
                view.Frame      = new CGRect(0, 0, tableView.Frame.Width, 0);
                view.Identifier = identifer;
            }
            view.Tweet = viewModel.Tweets [(int)row];

            return(view);
        }