Home » Archive

Articles in the Programming Category

iPhone, iPhone Programming, Programming »

If you are doing something like the following:
NSString *path = [[NSBundle mainBundle] pathForResource:@”MenuStructure” ofType:@”plist”];
self.menuItems = [NSArray arrayWithContentsOfFile:path];
and run into problems resulting in an empty array which upon examination using breakpoints shows ‘Invalid Array’. U should check the following:
1. That the path is correct. if u use NSLog to print the path to the console or use the contextual info from the path then you will be told were your app is located. This would work best using they simulator because you will actually be able to navigate to the files. …

iPhone, iPhone Programming, Programming »

Many sources state that you cannot change the height of a UIPageControl from within xcode, however the PageControl code sample from Apple demonstrates otherwise.
In this sample the UIPageControl features an editable height component, and you may also notice that whilst looking through the identity inspector, that there are also accessibility options.
This is because they have used a View (UIView) object from the library and changed the class type to a UIPageControl (naughty! – I swear I read somewhere in the documentation not to do this!) but the icon was the …

Programming »

Yup! Another new(ish) product from Google.
Go is the new programming language developed by Google with its accompanying compiler Ogle and below character as its mascot:

Although you may get beaten up for wearing any clothing featuring the mascot, the language does actually sound exiting and I thought it was worth mentioning.
This new programming language has a focus on concurrency, garbage collection, and expressiveness. This essentially, means you can separate tasks out into separate processes and have them running all at the same time, whilst at the same time, any unused items …