Category Archives: nib

Hanging by a (NS)Thread (part 2 of 2)

Run Loops, Threads, Timers… these are some of the concepts I’ve been trying to get a handle on in the past few days. I’ve been running into term Run Loops a lot more a little lately. WordPress developers use it a lot. I think this is the code that keeps track of all the events [...]

Also posted in cocoa, download, networking, source code | Leave a comment

Sneaky Bastard version 0.1

Used NSDate to add current date to image filename. Working with Dates in Cocoa is straightforward. I just used the NSDateFormatter to customize the output. This is how I implemented it using a MMddYY_HHmmss format: 12345NSDate *now = [NSDate date]; NSDateFormatter* formatter = [[[NSDateFormatter alloc] init] autorelease]; [formatter setDateFormat:@"MMddYY_HHmmss"]; NSString* formattedDateString; formattedDateString = [formatter stringFromDate:now]; [...]

Also posted in UI | Leave a comment

NSStatusBar

I was gonna spend more time reading more Cocoa and Objective-C books. But knowing myself, this will only set the trend for procastination and getting lazy until the initial inspiration that made me think of this project wears off. I need to push myself to get started. Even if I don’t know what I’m doing. [...]

Also posted in objective-c | Leave a comment

Objective-C 101

Okay i’ve got Xcode setup, I’ve downloaded some sample source code, now it’s time to get started. Before I can do that I browsed some books on learning Objective-C. Here are some of my first impressions: Methods in Objective-C are called messages. And they’re invoked differently as well. For example, to call an init method [...]

Also posted in objective-c | Leave a comment