Re: Window title bar accessory view
Re: Window title bar accessory view
- Subject: Re: Window title bar accessory view
- From: "Kyle Sluder" <email@hidden>
- Date: Tue, 18 Nov 2008 22:03:48 -0500
On Tue, Nov 18, 2008 at 9:26 PM, Houdah - ML Pierre Bernard
<email@hidden> wrote:
> I would like to replicate the accessory views found in the top right of
> window title bars. Examples include Coda, iCal, Safari,...
Are you talking about things like the little lock icon in HTTPS Safari
windows? If so, use -[NSWindow standardWindowButton:] to get an
NSButton instance, and then use -[NSView superview] to get at the
window frame view. Then use -[NSView addSubview:] to add your custom
view and position it accordingly.
--Kyle Sluder
_______________________________________________
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