• 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
Problem with -setMovableByWindowBackgound: method.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with -setMovableByWindowBackgound: method.


  • Subject: Problem with -setMovableByWindowBackgound: method.
  • From: "Jordan Evans" <email@hidden>
  • Date: Mon, 14 Aug 2006 09:06:50 -0700

I've set up a transparent window for custom purposes.  I want it to be
able to turn on and off the ability for it to be drug by it's
background.  When I comment out this code:

               [window setMovableByWindowBackgound:NO];

it is dragable.  But, when I take out the comments, the window is
still dragable by it's background.

How do I do create the ability to turn off it being movable and
non-movable during the custom window's existence?

- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned
int)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag
{
   NSWindow* window = [super initWithContentRect:contentRect
styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered
defer:NO];

   [window setBackgroundColor: [NSColor clearColor]];

   [window setAlphaValue:1.0];

   [window setOpaque:NO];

       [window setMovableByWindowBackgound:NO];

   return window;
}
_______________________________________________
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


  • Prev by Date: Where to properly call [NSPersistentStoreCoordinator persistentStores] ?
  • Next by Date: [SOLVED]Re: releasing NSXMLParser
  • Previous by thread: Re: Where to properly call [NSPersistentStoreCoordinator persistentStores] ?
  • Next by thread: Getting the current page number in TextEdit
  • Index(es):
    • Date
    • Thread