Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 28, 2012, 05:07 AM   #1
activate
macrumors regular
 
Join Date: Dec 2011
Replicate the ios screenshot effect

Hi,

I was wondering if anyone knew how to replicate the 'flash' effect of a screenshot of an ios device on a mac. I want to use it as visual feedback for shortcuts such as shift command 3.

Thanks.
activate is offline   0 Reply With Quote
Old Nov 29, 2012, 10:26 AM   #2
Littleodie914
macrumors 68000
 
Littleodie914's Avatar
 
Join Date: Jun 2004
Location: Rochester, NY
This may get you started:

http://stackoverflow.com/questions/4...-above-desktop

Use a borderless NSWindow that fills the screen, and an embedded NSView (background color set to white) that fills the window.

Bring the window to the front/focus, then use core animation to fade it out. (And eventually close it. Don't forget to close it!)
Littleodie914 is offline   0 Reply With Quote
Old Nov 29, 2012, 11:15 PM   #3
ArtOfWarfare
macrumors 601
 
ArtOfWarfare's Avatar
 
Join Date: Nov 2007
Send a message via Skype™ to ArtOfWarfare
I'm not certain that its possible to receive any notification that a screenshot is taking place... Unless maybe you can moniter:
1 - the directory in finder where screenshots are kept (which you'd have to find from a preference plist hidden in library, no doubt)
2 - the user's clipboard for changes in the image data stored?

I do not believe you have any chance of an app with these features being sandboxable.
ArtOfWarfare is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Tags
flash effect, screenshot

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 04:06 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC