I am doing something with cocoa, which I think makes it a little complicated for a beginner like me. I tried several things, but I admit that I need a theory, because I would like to understand the meaning of these concepts exactly.
I see that every NSView and every class that subclasses it has one thing called frameand one thing bounds. Both are sized with width and height and source.
I have an NSView with an NSTableView inside it. I have the row size from the table view and I would like to set the height of both NSView and NSTableView equal rows*rowSizeso that group NSView + subviews automatically change when adding or removing an object to and from the table data source.
I did some experiments, but I confused the frames, frames, sizes, and so on a little. I do not know what I should change and how.
Could you give me a hint about what borders and frames basically exist, and how can I achieve this change in magic?
Thanks for your answers in advance. Regards,
-Albé
source
share