• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Safari-like padlock button in window title bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • RE: Safari-like padlock button in window title bar
      • From: Jim Matthews <email@hidden>
    • Re: Safari-like padlock button in window title bar
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Cocoa et al as HCI usability problem
  • Next by Date: Re: Cocoa et al as HCI usability problem
  • Previous by thread: Safari-like padlock button in window title bar
  • Next by thread: Re: Safari-like padlock button in window title bar
  • Index(es):
    • Date
    • Thread