• 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: Jim Matthews <email@hidden>
  • Date: Fri, 23 May 2008 22:31:12 -0400

At 8:08 PM -0400 5/20/08, Gary L. Wade wrote:
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.

I wasn't sure I could do this at first, because my window (a modal dialog) does not have close, minimize, or zoom buttons, or any other button that standardWindowButton: can return. I worked around that by temporarily creating a toolbar, getting the location and superview of the toolbar button, and then removing the toolbar.


Thanks for the help,
--
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


References: 
 >RE: Safari-like padlock button in window title bar (From: "Gary L. Wade" <email@hidden>)

  • Prev by Date: Re: File's Owner
  • Next by Date: Re: File's Owner
  • Previous by thread: Re: Safari-like padlock button in window title bar
  • Next by thread: Newbie question about Database
  • Index(es):
    • Date
    • Thread