• 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: Making a NSPanel immovable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making a NSPanel immovable


  • Subject: Re: Making a NSPanel immovable
  • From: glenn andreas <email@hidden>
  • Date: Tue, 22 Jan 2008 13:48:15 -0600


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@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build, mutate, evolve, animate




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Making a NSPanel immovable (From: "R.L. Grigg" <email@hidden>)

  • Prev by Date: Re: Making a NSPanel immovable
  • Next by Date: Re: Carbon-Cocoa Integration: Linking issue
  • Previous by thread: Re: Making a NSPanel immovable
  • Next by thread: mouse down in table view without selecting the row
  • Index(es):
    • Date
    • Thread