Re: setAccessoryView
Re: setAccessoryView
- Subject: Re: setAccessoryView
- From: Eric Long <email@hidden>
- Date: Wed, 12 May 2004 10:10:08 -0700
>
I don't know if there is an easy way to do it, but I guess you could
>
register for a notification when the window resizes, and then resize
>
your accessory view.
That seems to work well.
I used the code below to process the window resize notice. It appears to
work well, though my relative newness to Cocoa might be overlooking
something.
- (void) handleWindowDidResize:(NSNotification *)notification
{
if ([notification object] == curNSOpenPanel)
{
NSView *sView = [myCustomView superview];
[myCustomView setFrame:[sView frame]];
[myCustomView display];
}
}
>
What happens if, after setAccessoryView:, you send setAutoresizingMask:
>
to your view?
>
I didn't see any effect from trying that. It's possible I may have set the
mask incorrectly. It seemed straight forward enough though, I just didn't
see any effect.
Thanks,
Eric
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.