Re: Window title bar accessory view
Re: Window title bar accessory view
- Subject: Re: Window title bar accessory view
- From: Houdah - ML Pierre Bernard <email@hidden>
- Date: Wed, 19 Nov 2008 10:54:39 +0100
Hi Kyle!
Thanks a lot.
This sounds like a great idea. I will give it a try ASAP.
Pierre
On 19 Nov 2008, at 04:03, Kyle Sluder wrote:
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