depicus

  just another nerd on the interweb…



  • home
  • gallery
  • play page
  • privacy
  • support
  • videos
  • what is depicus

Posts Tagged ‘Code’

Mac App Rejection….

Saturday, January 1st, 2011



Bummer just been rejected for “2.30 Apps that do not comply with the Mac OS X File System documentation will be rejected”

“The application is creating files or writing to ~/Library/Application Support/Depicus/…. Appropriate app-identifiers are ‘WakeOnLan’, ‘com.depicus.osx.wakeonlan’ and your name”

Well have filed an appeal so lets see how we get on but looks like I won’t make it into the App Store for launch.

UPDATE WE WON – Wake on Lan will be in the Mac App Store wheeeeeeeheeee

Tags: App Store, Apple, Code, OSX, Rejected, Wake On Lan, XCode
Posted in Software Development, Wake On Lan | 8 Comments »

Wake On Lan hits controversy and 1.4

Wednesday, December 1st, 2010



Some people are not happy with me using analytics to see how you use the app and on what devices. Nothing nefarious it was just Google analytics for the iPhone which told me what buttons you pressed most.

BUT if your not happy then I’m not happy. So I have removed all of it.

I have also fixed a bug that would crash the app on 3.1.3 and lower devices. As ever should be live in about a week.

Tags: Code, Google, iPad, iPhone, iPod Touch, Objective C, Wake On Lan, WakeOnLan, XCode
Posted in Computers, Software Development, Wake On Lan | Comments Off

iPhone App 1.3 – Forever in Review

Saturday, November 6th, 2010



Well it’s been a week since v1.2 of the iPhone/iPad version of Wake On Lan was submitted to Apples app store. It’s the one annoying feature of the app store that you never know how long it will take. Thankfully I have been hard at work on 1.3 with more features so once 1.2 goes live I will submit 1.3. Here are a few screen shots to keep you going.

1. The auto discovery page

Discovery Page, current Arp Cache

Discovery Page, current Arp Cache

2. Doing some magic

Doing some magic

Doing some magic

3. The end results

The end results

The end results

And after a bit of tinkering

Tags: Apple, Code, iPad, iPhone, iPod Touch, Objective C, Wake On Lan, WakeOnLan, XCode
Posted in Computers, Software Development | 35 Comments »

Wake On Lan for OSX is live

Thursday, November 4th, 2010



Well it’s not pretty but it works, will add more functionality if there is demand but for now here it is.

Head on over to the main site to download.

Tags: Apple, Code, Objective C, Wake On Lan, WakeOnLan, XCode
Posted in Computers, Software Development, Wake On Lan | 2 Comments »

Because you can never trust a user…

Thursday, November 4th, 2010



You will be surprised, or not, at the stuff people will try and type into UITextField boxes. Here is some code that uses shouldChangeCharactersInRange to a) check the characters entered and b) restrict the length and as a bonus add charachters that the user has to type.

The field requires the user to input a mac address which is a alpha numeric field but letters are only valid up to F.

As always this code is cobbled from other pioneers in the interweb, thanks to them.

View Code OBJC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
- (BOOL) textField:(UITextField*)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString*)textEntered 
{
    if (textField.tag == 101)
    {
        NSCharacterSet *myMacAddress = [NSCharacterSet characterSetWithCharactersInString:@"0123456789abcdefABCDEF-:"];
    for (int i = 0; i < [textEntered length]; i++) 
    {
        unichar c = [textEntered characterAtIndex:i];
        if (![myMacAddress characterIsMember:c]) 
        {
            return NO;
        }
        if (([textField.text length] == 1) || ([textField.text length] == 4) || ([textField.text length] == 7) || ([textField.text length] == 10) || ([textField.text length] == 13))
        {
           [textField setText:[NSString stringWithFormat:@"%@%@-",[textField text],textEntered]]; 
            return NO;
        }
        int limit = 16;
        return !([textField.text length]>limit && [textEntered length] > range.length);
    } 
    }
    return YES;
}

Not perfect but better than nothing.

Tags: Code, Objective C, XCode
Posted in Interweb, Software Development | Comments Off

<< Previous

  • how i pay the bills

  • depicus in africa

    depicus in africa
  • my charity page

    JustGiving - Sponsor me now!
  • friends

    • Agency Manager
    • AllClear Travel
    • Climbing Tikes
    • Globe Bloggers
    • Marchday
    • The Travel Toad
  • gallery

    IMG_3545 IMG_2582 IMG_4551 Replica of the first Merc built
  • videos

    Vimeo

    YouTube
  • twitter

    • No public Twitter messages.
  • recent comments

    • john coull: correction to above, its www.oakley-ukstore.com
    • john coull: they are at it again. adverts on facebook . they are being hosted by enotch.com on ip address...
    • steve: The site are selling £120+ Oakley sun glasses for £13.00 I think its safe to say they may be either...
    • rob: have received a pair of glasses not what ive ordered they are now telling me the ones ive ordered are out of...
    • phil: hi i have purchased some (stupidly),not arrived yet, will they arrive/will they be fake/plz help

Copyright © - depicus | Entries (RSS) | Comments (RSS)

WordPress theme butchered and amended by me.