• 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: Utility Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Utility Windows


  • Subject: Re: Utility Windows
  • From: kristin <email@hidden>
  • Date: Fri, 25 May 2001 15:42:32 -0700

For an example, you can look in /Developer/Examples/AppKit/Sketch. The ToolPalette.nib contains a utility window. The delegate code is in SKTToolPaletteController.m.

To get you started:
You can create a utility window in IB. You must first make your window an NSPanel, then you can set the "Utility window" attribute in the Attributes info window. You can see this in ToolPalette.nib.

If you were for some reason creating your window dynamically, you could instead add NSUtilityWindowMask to the styleMask passed to -[window initWithContentRect:styleMask:backing:defer:].

This will get you the correct appearance and the floating behavior. The rest of your requirements can be implemented in a controller object, and Sketch should help you understand how to do this.

Kristin

On Friday, May 25, 2001, at 01:02 PM, Kim Foo-Jones wrote:

Are there any samples for doing floating palettes/utility windows out there? I'm a Cocoa novice so I don't really know where to look for the appropriate documentation...

I want the following behaviour:

Floating
Can show/hide from a menu item
Clicking the close box hides the palette
The controls in the palette will alter the properties of the active document (ie it's a bit like an "inspector" palette)

TIA,

-Kim Foo-Jones
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Utility Windows (From: Kim Foo-Jones <email@hidden>)

  • Prev by Date: renaming files
  • Next by Date: Re: renaming files
  • Previous by thread: Utility Windows
  • Next by thread: NSMovieView controller troubles
  • Index(es):
    • Date
    • Thread