Re: addSubview: and positioning at the bottom of a NSWindow

2009-08-04 Thread Stefano Pigozzi
I solved this. With setAutoresizingMask: I can prevent the scrollview containing the tableview to grow with the window frame. Posting my solution for the sake of people that might have similar issues in the future. NSRect bounds = [infoView bounds]; NSRect frame = [[searchWi

Re: addSubview: and positioning at the bottom of a NSWindow

2009-08-03 Thread Chase Meadors
Consider using NSDrawer. It can contain a content view (i.e. your info view) and can be attached to any side of a parent window, and be shown or hidden. If you don't want to use this, however, just grab the content view's frame, NSRect r = [[window contentView] frame] and then call: [[w

addSubview: and positioning at the bottom of a NSWindow

2009-08-03 Thread Stefano Pigozzi
Hello, I'm trying to do something simple, I have a NSWindow containing a NSTableView that resizes with the with the window. When I click on one element I want to display additional information in a subView that I'm adding with [[theWindow contentView] addSubview:infoView]; The problem is wh