• 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
how to setMovableByWindowBackground?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to setMovableByWindowBackground?


  • Subject: how to setMovableByWindowBackground?
  • From: email@hidden
  • Date: Sun, 11 Jan 2004 00:34:05 +0100

Hi All,

I want to have an very small window with no title bar so I do:
smallwin = [[NSWindow alloc] initWithContentRect:NSMakeRect(0.0, 0.0, 40, 20) styleMask:NSTexturedBackgroundWindowMask backing:NSBackingStoreBuffered defer:YES];
this works as expected: you can move the window by clicking and dragging anywhere in the window background.

Now I want to draw an image and set an NSImageView as content view:
[smallwin setContentView:someImageView];

One can not move the window with click&drag to the background anymore.

I tried to fiddle around with the responder chain but was not successful.
Do you have any hints/suggestions?

TIA,
--Jan--
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: how to setMovableByWindowBackground?
      • From: email@hidden
  • Prev by Date: Detecting a new application launch?
  • Next by Date: Re: vImage
  • Previous by thread: Re: Detecting a new application launch?
  • Next by thread: Re: how to setMovableByWindowBackground?
  • Index(es):
    • Date
    • Thread