• 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
NSPanel with just a close button & title on title bar?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPanel with just a close button & title on title bar?


  • Subject: NSPanel with just a close button & title on title bar?
  • From: Ken Tabb <email@hidden>
  • Date: Thu, 18 Nov 2004 16:50:48 +0000

Hi folks,

I have a very narrow but tall tool palette (NSPanel utility window) that needs to have "Tools" written in its title bar, and a single red close button. If I design the panel in IB, and only check "close box" (not miniaturise or resize) I still get all 3 on the title bar, albeit miniaturise & maximise are disabled (but they still take up valuable title bar space).

If I attempt the same thing programmatically, using [[NSPanel alloc] initWithContentRect:styleMask:backing:defer:] I end up with the same situation... the 2 redundant & disabled buttons push the title "Tools" half off the edge of the window's title bar.

I searched mamasam and someone in 2002 had this problem but the only solution known at the time was to do a Carbon panel. Has anything been improved since 2002 does anyone know?

Doesn't it make sense for some types of utility window to not have mini/maxi buttons? I mean, a disabled button infers to the user that for that specific window it may one day become enabled (otherwise it wouldn't be there), yet in my case it will never be enabled for this little puppy.

Thanks in advance for your help,
Ken

- - - - - - - - - -
Dr. Ken Tabb
Mac & UNIX Developer - Health & Human Sciences
Machine Vision & Neural Network researcher - School of Computer Science
University of Hertfordshire, UK
http://www.health.herts.ac.uk/ken/

Certified non-Microsoft Solution Provider

_______________________________________________
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: NSPanel with just a close button & title on title bar?
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: NSImage question
  • Next by Date: Re: NSImage question
  • Previous by thread: Re: NSImage question
  • Next by thread: Re: NSPanel with just a close button & title on title bar?
  • Index(es):
    • Date
    • Thread