Hello there,
learning Cocoa can be pretty tough for web developers. Some things are so simple in HTML, and I have no idea, how to do this in Cocoa.
Let me just show you an image here, to show you what I have on my mind.
So it's kinda like a blog. Each post has variable length, so it can take up some space. Also, you're able to scroll through posts.
I was thinking about using NSTableView or NSCollectionView, but since I don't know much about Cocoa, I'm asking you for advice.
Also please do link any related articles.
Updates
So here are some things that I discovered.
- I could make a subclass of NSCell and use it in Table View. I can use it, I can put there a string, something like this:
(please take a look at this code, I'm wondering if I should use awakeFromNib/setDataCell combination)
- But string is not enough. I need a NSTextView. The problem is, it doesn't have method like
drawInRect: withAttributes:
. So I don't know how to draw it into that cell. I guess I'm missing some basics here, so I'm just gonna study some Cocoa views now.
Any ideas are welcome.