Re: Utility Windows
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