> On Jul 8, 2015, at 9:33 AM, Jonathan Taylor <jonathan.tay...@glasgow.ac.uk> 
> wrote:
> 
> I have an open panel to which I am trying to add an accessory view. That much 
> works. However I would like the accessory view to resize to fit the width of 
> the parent window. It’s just a textual description, after all.

I have a preference panel window controller that adjusts the panel height based 
on which toolbar item is selected. You can see the same thing in the 
Preferences panel for a number of Apple’s applications (Mail, Preview, Safari). 
The understanding of how to do this came from "Cocoa Programming for OS X" 
Chapter 31 View Swapping and Custom Container View Controller by Hillegass.

There may be some similarities there to what you are doing.

--Richard Charles


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to