part of the groupelephant.com family
beyond corporate purpose

Safe type casting in Obj-C

05 Feb 2016

Althought Swift is gradually taking over Objective-C, we still use Objective-C for most of our iOS apps. And recently we ran into the following problem.

Normally to safe-cast an object in Objective-C, you would write something like:

- (void)someAction:(id)sender {
    if ([sender isKindOfClass:[UIButton class]]) {
        ((UIButton *)sender).enabled = false;
    }
}

This is quite lengthy and cumbersome to write. So someone mentioned the following on our Slack channel:

We need dynamic_cast in Objective-C.

So, after a quick search on DuckDuckGo, we found an elegant solution on Stack Overflow.

Create a category for NSObject, named NSObject+Cast. In the header file place the following class method definition:

#import <Foundation/Foundation.h>

@interface NSObject (Cast)

+ (instancetype)cast:(id)from;

@end

And in the implementation file:

#import "NSObject+Cast.h"

@implementation NSObject (Cast)

+ (instancetype)cast:(id)from {
    if ([from isKindOfClass:self]) {
        return from;
    }
    return nil;
}

Now you can rewrite the example at the top as:

#import "NSObject+Cast.h"

//...

- (void)someAction:(id)sender {
    [UIButton cast:sender].enabled = false;
}

Look how elegant this is.

Experienced Developer Wanted

14 Aug 2015

10to1 is part of Epi-use since little over a year now. We’ve spent the last year aligning our businesses. 10to1 is ready to grow its business further in B2B mobile apps.

To support this growth, we’re looking for an experienced developer. If you apply for this job, you will be designing, programming and maintaining web and mobile apps. You will also have to coach junior developers. Together with the project manager, you’ll interact with our customers.

We’re looking for experience in these fields:

  • Programming
  • iOS
  • Android
  • Ruby on Rails
  • Agile programming
  • B2B applications
  • Coaching and mentoring

You would work in a relatively young team, all people who are passionate about their job and who want to deliver the best code possible.

We offer you

  • a great environment
  • the opportunity to learn from experienced people
  • the opportunity to learn from coaching less experienced people
  • the opportunity to work on projects from within our office
  • an office which is located in the beautiful Groen Kwartier in Antwerp
  • an office located on walking distance from Antwerp-Berchem
  • benefits
  • oh, and a salary :)

The reason 10to1 was started, was to create an environment were people are happy (which was logical at that time, because in the beginning, there were only the 2 founders). We’ve maintained that mission ever since - and this is shared by our mother company EPI-USE. You, too, can enjoy this.

Want to talk? Send a mail to jobs@10to1.be or call Tom at +32 475 28 17 62 !

Are you an efficient office manager? Come talk with us.

02 Jul 2015

10to1 is part of Epi-use since little over a year now. We’ve spent the last year aligning our businesses. 10to1 is ready to grow its business further in B2B mobile apps.

To support this growth, we’re looking for an efficient office manager. He or she will be responsible for

  • Invoicing
  • Sales and marketing support
  • Greeting visitors, and make them feel welcome
  • Handling incoming mail
  • Handling incoming invoices
  • Banking
  • General office management (ordering supplies, …)
  • Some communication with Epi-use, mainly in South Africa.

Our office manager reports directly to our managing director.

We’ll evaluate your application on these criteria:

  • You’re able to organize your own work. Your performance is evaluated based on what results you get, not on how many tasks you’ve executed.
  • You’re fluent in English and Dutch. Knowledge of French is a big plus.
  • You’re familiar with Mac (OS X)
  • You’re proficient in MS Office (Word, Excel) and iWorks (Pages, Numbers)
  • Furthermore, you’ll be using these tools. Experience with any of them is a plus (but not required): Dropbox, Google Apps (mostly GMail), Slack, Todoist, Skype, GoToMeeting.

This job requires that you know what you’re doing, and to understand why you’re doing it.

We offer you a friendly environment where you’re appreciated for what you’re doing. We want our employees to be happy, and we try to help them to be happy every day.

There’s no need to be stuck in traffic daily: the 10to1 offices are close to Antwerp-Berchem, which makes a train commute very easy. Tram 4 and 9 have stops close by, as has bus 32. And the nearest Velo station is only 200m away.

Do you feel challenged? Send a mail to jobs@10to1.be or call Tom at +32 475 28 17 62, and convince us to hire you!

Are you an ambitious sales manager? Come talk with us.

30 Jun 2015

10to1 is part of Epi-use since little over a year now. We’ve spent the last year aligning our businesses. 10to1 is ready to grow its business further in B2B mobile apps.

We’ve got a great team of developers, designers and project managers. They do a great job. But they don’t sell themselves. That’s why we need you – if you’re ambitious and able to sell bespoke software.

Your mission, if you choose to accept, is to acquire new customers in Belgium and in Europe. You can rely on Epi-Use’s global network. However, you have to be able to build your own sales process. You’ll be at the start of a dedicated sales team – a team that will grow in the coming years.

This job is not for the faint of heart. You’ll need ambition and you’ll need perseverance. But the reward will make it worth it.

Do you feel challenged? Send a mail to jobs@10to1.be or call Tom at +32 475 28 17 62, and convince us to hire you!

We've moved

24 Oct 2014

Ouf. That’s been a busy week. So busy, that I even haven’t had the time to tell you that 10to1 has moved.

Back in 2011, at our last move, we thought it was important to be reachable by car. What we didn’t think about was to be reachable by public transport. Big mistake – a lot of people would like to come to work by train or bus, but that wasn’t possible.

So when our lease ran out, we decided to move to Antwerp. We’re moving to the old military hospital, which is a nice place to be :)

Our new postal address is

Hospitaalplein 11
2018 Antwerpen

That office, however, is currently being renovated. As you can see, we have some serious hacking to do to get things in order :)

So until February 2015, if you want to visit us, you’re welcome nextdoors:

Lange Leemstraat 372
2018 Antwerpen

We now have a tram stopping at 100 meters from our door, and the train station Antwerpen-Berchem is only 700 meters (or a 7’ walk) away. And we have a lot of bars and restaurants in the neighbourhood now. We already feel the new vibes in our office, and it will only get better!