• 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
HW Accelerated Window Dragging (only from titlebar ?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HW Accelerated Window Dragging (only from titlebar ?)


  • Subject: HW Accelerated Window Dragging (only from titlebar ?)
  • From: Darrin Filer <email@hidden>
  • Date: Sat, 12 Jan 2002 15:17:03 -0500

While using the quartz debug app I noticed something strange with my custom NSWindow framework. Dragging windows from somewhere in their content area doesn't seem to take advantage of hardware accelerated window dragging.

Dragging a window from its title bar results in only its title bar and shadow being updated by quartz (flashing yellow). Dragging from within the content area results in the entire window being updated. Careful observation of the yellow flashing while dragging the itunes or quicktime window is quite interesting as well. They seem to pull off an NSBorderlessWindowMask window while still preserving HW accelerated window dragging.

I'm using the following line in the contentView's mouseDragged method to reposition the window.
[[self window] setFrameOrigin:newOrigin];

Is there a way to take advantage of HW accelerated dragging in NSWindows without a title bar?

This is one of the last hurdles before I release a cocoa framework which provides an eyeToons-esque brushed metal look by simply reclassing your NSWindows!


  • Prev by Date: Re: MemoryMapping Large Files - ???
  • Next by Date: Re: Checksum to compare custom objects
  • Previous by thread: Re: Checksum to compare custom objects
  • Next by thread: Pref Panes and Instance Variables?
  • Index(es):
    • Date
    • Thread