site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=4aWngT1an7XtDGrV8kS03fiOvRDmpRwykYmWYOm2Qlk=; b=vnoBPYyes7WOelKLFEJQmeJrRIr9V8YuNDP8Nl1Vr+AkEL824pWe4lYjE/s1jHgGza +aH484WrUZUuX4LdNRRFUy5hpwuxt7M3SX3sqo10zSZ8hheac/ZeUDLMIGKeI/5dR7UO fcU6JVUV8mKiMcQb9YINDBHSakHtJ1VhfnO1A= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=RBrkkVn9/nk3mPa+6pxXWK53qF//B4xekVriKdvg1lMBC4ZEhWsO4aLd+n3xwxZSe3 2ndGjijdKNCdq1L6JQFnJ5pu0Sw+qzXd+PlK5YPG3l36fmovdQZP25eiwl6t2fxzyJgk V/8DO2XlCSLQ2CoXIKNdAIXVUvJr2TcWEhzwE= OUCH!!! that hurts! :(. I will look for the examples to get snapshot of the window and see... so getting the snapshot, then I apply the CIFilter, and the I render the image behind the menu... isn't it? Thanks Gustavo On Jan 1, 2010, at 6:28 PM, Kyle Sluder wrote:
On Fri, Jan 1, 2010 at 8:37 AM, Gustavo Pizano <gustavxcodepicora@gmail.com> wrote:
I dunno if my thoughts are in the right way, or no.. If so.. then .. how can I achieve it? I mean how can I take whats under the frame of the menu?
The "correct" way to do it unfortunately involves private API. (Searching for the logical terms will return relevant results.) File an enhancement request asking for this API to be made public.
In the meantime, you could hack around it by getting the contents of all windows except the one your menu occupies, and compositing that into your window's backing store. Relevant sample code for getting a snapshot of a set of windows can be found on the developer.apple.com site.
--Kyle Sluder
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... This email sent to site_archiver@lists.apple.com