Re: How to resize accessory view to match Open panel
Re: How to resize accessory view to match Open panel
- Subject: Re: How to resize accessory view to match Open panel
- From: Richard Charles <email@hidden>
- Date: Wed, 08 Jul 2015 10:14:35 -0600
> On Jul 8, 2015, at 9:33 AM, Jonathan Taylor <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden