Skip navigation.
 
mlRe: Making a NSPanel immovable
FROM : glenn andreas
DATE : Tue Jan 22 20:48:15 2008

On Jan 22, 2008, at 1:22 PM, R.L. Grigg wrote:

> I have a kiosk application that has a NSPanel of controls that the 
> users want to be positioned at a certain spot on the screen and be 
> immovable. I subclassed NSPanel and overrode all of the -
> setFrame ... methods, but no change. -(void)setFrame:
> (NSRect)windowFrame display:(BOOL)displayViews gets invoked once 
> initially, but not when I drag the panel. I know about 
> programmatically creating a panel without a title bar, but the panel 
> has lots of intricate controls on it (built in IB), so I really 
> don't want to create this programmatically. I hope its just a matter 
> of overriding the right method...
> OSX 10.4.11 Xcode 2.4.1



Easiest would be to subclass NSPanel to make a "NoTitleBarPanel" (and 
implement initWithFrame:... and build a window without a title bar) 
and then just set custom class of your panel in IB to your new class....


Glenn Andreas                      <email_removed>
  <http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build, 
mutate, evolve, animate

Related mailsAuthorDate
mlMaking a NSPanel immovable R.L. Grigg Jan 22, 20:22
mlRe: Making a NSPanel immovable Jacob Lukas Jan 22, 20:44
mlRe: Making a NSPanel immovable glenn andreas Jan 22, 20:48