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

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: