Re: Cocoa UI Size
Re: Cocoa UI Size
- Subject: Re: Cocoa UI Size
- From: Paul Davis <email@hidden>
- Date: Sun, 6 Jun 2010 08:10:02 -0500
On Sun, Jun 6, 2010 at 4:51 AM, Urs Heckmann <email@hidden> wrote:
> Hi,
>
> What steps are necessary to do to tell the host of the initial size of a CocoaUI? - Using Nibs is not an option as the gui size may vary due to various circumstances that can't be predicted at shipping time.
the host just asks the NSView provided by the plugin view component
for its size. so the mechanism has nothing specifically to do with AU
or CoreAudio, and everything to do with the standard API for an
NSView. In this case, you probably want to set the frame rect of the
NSView, or make its contents view be a subview that has a suitable
frame rect set. You are probably doing these things already (you code
fragment certainly suggests this).
whether the host creates a window that size, or packs it into a
scrolled window, or does something else entirely, is up to the host.
there's really no way to second guess this, override it or influence
it - the host owns the NSWindow that the view will appear in, and that
is pretty much the end of the story.
--p
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden