• 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: Implementing the Dock genie effect in windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing the Dock genie effect in windows


  • Subject: Re: Implementing the Dock genie effect in windows
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 15 Feb 2005 14:29:24 +0100

At 10:33 Uhr +0000 15.02.2005, Ken Tabb wrote:

Does anyone know of a way to mimic the Dock's genie effect on a given window, so that one of my windows can appear to 'pop out' of another window? Microsoft <shudder> managed it with their Formatting palette in Word vX, where it 'genies' out of (and back into) the Word toolbar. I've had a search on the web but can't see anything.

I have never done this, but here are my general guesses:

1) I vaguely remember having seen an API for window resizing or moving that allowed you to pass in an effects flag. Check NSWindow and CoreGraphics, maybe it's in there somewhere. Of course, if it's for resizing it won't be of use to you, but it's worth a try. Maybe it even was a private window server SPI, in that case the people on the Extendamac list (and their list archives) may know, but private SPIs can disappear without further notice, so I guess you wouldn't want to use that.

2) The usual trick for such kinds of animation is to create a transparent overlay window and draw a copy of your window into that, then manually (or with OpenGL or whatever graphics API you want to use) mutate that drawing so it looks like the Genie effect. I think there's a way to get the buffer in which your window is drawn from some CoreGraphics API.

Note this is all guesswork, but since nobody's answered you so far, I hope it'll at least give you an idea where to search.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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
References: 
 >Implementing the Dock genie effect in windows (From: Ken Tabb <email@hidden>)

  • Prev by Date: Re: Casting from NSArray to a custom class
  • Next by Date: Re: Formatting integer value
  • Previous by thread: Implementing the Dock genie effect in windows
  • Next by thread: Re: Implementing the Dock genie effect in windows
  • Index(es):
    • Date
    • Thread