Get Notification when a specific wifi network becomes available

Ever wanted to be notified when a certain wifi network becomes available?.

Maybe you are at University and the wifi goes up and down randomly. Just like the person I originally wrote this code for who is charged for mobile data when using their iPhone as personal hotspot during the Uni. wifi outage.

Here is a simple way of doing just that.

Continue reading

Swift programming -- Huh, No need to import .Swift Extension file

Many of you may have started to use the new Programming language Swift which Apple introduced in the WWDC 2014 Keynote.

It took many of us by surprise and for me a "oh here we go again, I now have to try and get my heard around another language".

Apple explains that it should be easier to use and easy to pick up for new  comers.

 I suspect that it will  be as Apple says for many people, me included.

One thing so far that I like and there are many..

Continue reading

10.9.3 Update hides /Users/ folder (fixed)

There have been many reports of the latest OS X update from Apple 10.9.3 (Build 13D65) intentionally hiding the /Users/ folder.  I am not convinced this is intentional but it has Happened to me.   People have suggested running the Terminal command

sudo chflags nohidden /Users

But After a logout or restart  you would have to run it again. Annoying!. Some one mentioned that it maybe the latest iTunes update that started it in conjunction with Find My Mac being switched on.  YES My where. So as an experiment I turned off Find My Mac. and ran the command. My Users folder obediently became un hidden. And on reboot stayed unhidden. But wait what about Find My Mac. Well I do want it on right. The only problem is turning Find My Mac back on makes the /Users/ folder go bye, bye : watch the video.

I will experiment some more. Because I think when I first did this It stuck around with Find My Mac switched back on, but I cannot remember just now what order I did things in to get it. i.e when I had Find My Mac back on.

Update -- fixed ..

Continue reading

NSPopover Close behaviour when entering Mission Control or LaunchPad

Geoff Coope asked about the close: behaviour of the NSPopover when entering Mission Control in the comments  of my previous post   Epiphany-for-fixing-nspopover .

He had noticed that the Popovers did not close when you entered into Mission Control

This was not something I had noticed as I had never gone into Mission Control with a popover open.  But he was right and not only in Mission Control, entering  Launchpad also does not close the Popover.

I had just been using a notification to control a NSDocuments behaviour and had an idea that the same thing could work.

Continue reading

Custom HEX Color Picker -- 1520 HEX colours

Using a couple of hex colour list from the web. I made a .clr  Colour Picker Palette file. Using NSColorlist

This can be placed in you users colours folder:

~/Library/Colors/

Once done.

Newly launched Applications will pick up the new palette which holds 1520 HEX colours.

I have marked some of the names with Web Safe. These should match what is considered web safe by those that know.

Screen Shot 2014-01-22 at 15.28.13 Screen Shot 2014-01-22 at 15.23.20

Transparent NSWindow using subclasses of NSWindow and NSView

This is a quick example of how to get a Transparent NSWindow using a subclassed NSWindow class and a subclassed NSView.

This is in response to a stackoverflow users request I post the source code. Which I have done here in context.

(Originally it had also had a webview which was related to the question but was not essential in any way in this example so it has been removed.)

Transparent Window with Controls and Labels overlaying it. If you click any where in the transparency the mouse will click the object behind the window. And the objects Application will become the active one.

transparentWindow2

Continue reading

Broken Skype Applescripts Fix…

Some of you may know that  Skype have an API that you can access via Applescript. To do such tasks as send sms text messages.

You may have found that for some unexplained reason this has stopped working?

 

Continue reading