Cocoa Tricks: How to send a keystroke event to the process with AppleScript

This code shows how to send a keystroke event for instance Control-Command-1 and Control-Command-0 to Finder with AppleScript. This is equivalent to pressing Finder->View->Arrange By->Name and Finder->View->Arrange By->None Continue reading “Cocoa Tricks: How to send a keystroke event to the process with AppleScript”

How to display a User Notification in Cocoa

user notification

User Notifications work with your apps to let you know when something has changed. For example, you can see when there’s upcoming appointments in Calendar or incoming email in Mail. Each app displays these notifications as a banner, alert, or badge.

How to display User Notification as small popup message? Continue reading “How to display a User Notification in Cocoa”

How to put iMac to sleep and turn Wi-Fi Off simultaneously

Put iMac to sleep and turn Wi-Fi Off

I never turn my iMac off. Never. I just put it to sleep and wake it up. But when it goes to sleep, I want nothing and no one bothered him – I mean the Internet first. I want him sleep like a Baby. So I decided to create a small application for that. Continue reading “How to put iMac to sleep and turn Wi-Fi Off simultaneously”

Google Analytics for iOS

How to add Google Analytics to iOS App? When I first time came to this question I thought that it shouldn’t be tricky. But I was mistaken. And the reason is that Google Analytics iOS SDK didn’t support bitcode. At least until version 3.14. So, let’s talk a little about this topic.

Continue reading “Google Analytics for iOS”