• 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: Adding an icon to the Window title bar (like Safari does with its Locked icon)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding an icon to the Window title bar (like Safari does with its Locked icon)


  • Subject: Re: Adding an icon to the Window title bar (like Safari does with its Locked icon)
  • From: Ryan Stevens <email@hidden>
  • Date: Thu, 11 Nov 2004 10:22:20 -0800

On Nov 10, 2004, at 12:39 PM, Mark Alldritt wrote:

Hi,

I want to add a small icon to the right-hand edge of my window's title bar.
This status icon is not clickable. I'm thinking of something like the
locked icon that appears in Safari when visiting a secure web page. How can
this be done?

I would get one of the standard window buttons and then add a new view to the button's superview...


{
id superview = [[yourWindow standardWindowButton:NSWindowCloseButton] superview];


[superview addSubview: yourView];
}

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Adding an icon to the Window title bar (like Safari does with its Locked icon)
      • From: Mark Alldritt <email@hidden>
References: 
 >Adding an icon to the Window title bar (like Safari does with its Locked icon) (From: Mark Alldritt <email@hidden>)

  • Prev by Date: 1 controller, 1 nib, 2 windows?
  • Next by Date: Re: Right aligned image in text table cell
  • Previous by thread: Adding an icon to the Window title bar (like Safari does with its Locked icon)
  • Next by thread: Re: Adding an icon to the Window title bar (like Safari does with its Locked icon)
  • Index(es):
    • Date
    • Thread