The current 'tuk-tuk' setup is a modification of a Japanese delivery vehicle popular in the '60s. Drivers operate the engine with a motorcycle style steering mechanism to guide the vehicles. Originally two-stroke engines, they are also available in four-stroke versions with delivery and pick-up models on offer as well. The name 'tuk-tuk' quaintly mimics the sound of their idling ...
Christmas could be very interesting and eventful, especially if you have a Catholic girlfriend ;) Well, yeah, I’m going to be busy this season. I had a sneak peek at her oooloo yesterday and found it very interesting and sweet the way she has planned everything. Merry Christmas :)
A forum is a great place to promote your product. It can help you from creating awareness to developing a good brand image. The first step is to identify the correct forums. Sometimes the results will not be instant but I can assure that the bonds you create with your potential customers would be strong. Answering a question posted in ...
Esala Perahera is the grand festival held in Kandy. It is very grand with elegant costumes. It has become a unique symbol of Sri Lanka. It is a Buddhist festival consisting of dances and nicely decorated elephants. There are fire-dances, whip-dances, Kandian dances and various other cultural dances. I was in there one week prior to the festival and didn't ...
If you are trying to find a way to make a NSWindow transparent then you should have a look at one of my earlier posts, titled "Draggable transparent NSWindow". Today I'm going to show you how to have the default NSWindow title bar controls (close,minimize,maximize). Step 01: Design images for the buttons. You require two sets of images, one set ...
I should say that I also some what agree with the buzz about how annoying the new timeline feature is. As it is said that facebook timeline is not going to be an optional feature anymore. Facebook will gradually turn all its user's profiles in to the timeline mode. However you will get 7 days trail period to recheck your ...
If the text is showing perfectly fine in other devices, first thing I would check is the font assigned. There is a small issue with the new Xcode version (version 4.2). Some of the fonts you get in the IB (Interface Builder) are not available in all iOS versions and devices. For example the font "Helvetica Neue Medium" is not ...
Two things you need to understand first 1. Branch condition : probably a if statement 2. Garbage value: Every variable has a garbage value prior to any initialisation "Branch condition evaluate to a garbage value" would probably mean that there could be an instance where your code (if statement in this case) tries to evaluate a variable/object which is not ...
Incorrect code sample UIImagePickerController *pickerController = [[UIImagePickerController alloc]init]; pickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; pickerController.delegate = self; [self.navigationController.view addSubview:pickerController]; [pickerController release]; Actually there is nothing wrong with the addSubview method. The only problem is that it doesn’t load the gallery. In iOS 5 the gallery gets loaded without any issue. However if you want to make your app com
Unlike in previous versions of Xcode accessing performance tools aren't straight forward in Xcode version 4. But if you follow the following steps, you would do just fine. 1. Go to edit schemes 2. Select Profile from the list to your left 3. Set the build configuration to debug 4. Select the instrument you want to run from the list ...
Sample code line 1: NSString *someString; line 2: someString = [self getStringValue]; line 3: NSLog(@"length of the string = %d",[someString length]); In the above example sometimes the code can crash at line 3. Possible reason would be that the object "someString" is either null or nil. null vs nil has always been a debate with my friends, when to use ...
You must be familiar with 'sectionIndexTitlesForTableView' method which allows you to define a list of shortcuts for your sections in an UITableView (like the iPhone contacts app). What if you want a similar behaviour without having any sections? This is how you could tweak apple's default behaviour of 'sectionIndexTitlesForTableView'. Implement the following methods in the delegate class of the UITableView. ...
I'm using ZipArchive developed by aish to create zip files. ZipArchive is an Objective-C class to compress or uncompress zip files, which is based on open source code "MiniZip". It worked fine on many of the iPhone apps I developed. However it does not support opening of an existing zip and adding more files to it. So I did this ...
It is common knowledge that the UINavigationBar will display the previous UIViewController's title in an arrow shaped button at the left hand side corner. Basically if the previous UIViewController doesn't have a title the back button won't be visible as well.This is annoying and I always thought that the best practise would have been to have the button with ...
For all the geeks and not so geeky to read and comment :) 1. Rarely are they possessive. They trust you, so, you can be yourself when you’re around them. 2. You won’t have to worry about him ogling another girl. They’re more concerned with gadgets and PCs. Heehee. 3. You don’t have to worry about what he’s up to ...
In the iPhone app I'm developing these days there was this instance where I was required to have a search box on top of a table view and to show/hide when required. When the page loads I didn't want it, so I added the following in the view will appear method. [self.tableView setContentOffset:CGPointMake(0, 44) animated:FALSE]; 44 = height of the ...
You can achieve this by setting an NSView to the NSStatusItem and getting its frame when needed. NSRect rect = [[[statusItem view] window ] frame]; statusItem is a NSStatusItem object. You can get the current item as follows, NSStatusBar *statusBar = [NSStatusBar systemStatusBar]; statusItem = [[statusBar statusItemWithLength:21]retain]; To handle any actions you will have to add a NSButton to this ...
This was something I picked up from the bag in which my breakfast came in. The poem took me back to my school days where some of us were very mischievous, thought I should give some credit to the author by publishing it in my blog. It's not my fault It isn't fair It's not my gum In Jenny's hair ...
The following code is an example for a way you could customize a NSMenu in Objective C. It will add customized list items to your NSMenu by setting NSAttributedString objects for the title of the NSMenuItems instead of NSString objects. //first you need a NSMutableDictionary to hold the attributes self.folderItemFormatDictionary = [[NSMutableDictionary alloc]init]; /*NSAttributedString class has lot of attributes you ...