RE: Safari-like padlock button in window title bar
RE: Safari-like padlock button in window title bar
- Subject: RE: Safari-like padlock button in window title bar
- From: "Gary L. Wade" <email@hidden>
- Date: Tue, 20 May 2008 20:08:28 -0400
I'm planning on doing something like this myself with one of my projects, and the way I plan on trying it out is by using:
-(NSButton *)standardWindowButton:(NSWindowButton)b;
for each NSWindowButton of the NSWindow, find a reasonable visual gap to the left/right of one of the buttons, and then add my own to their superview.
Now that I think of this, I might also need to consider above/below gaps for vertically-placed buttons.
Try this out and let us know how it works.
>I'd like to draw a padlock icon in a window title bar, similar to the
>way Safari does when it's displaying an https URL. And I'd like to
>be able to respond to clicks on the padlock by displaying security
>information. Is there a supported way to add a button to a window's
>title bar?
>
>Thanks,
>--
>Jim Matthews
>Fetch Softworks
>http://fetchsoftworks.com
_______________________________________________
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