Objective-C: SQLite Wrapper (1)
share
digg
by
Matteo Bertozzi (0)
on
Planet Cocoa (0)
4 days, 16 hours
ago
permalink
I’ve written a simple SQLite Wrapper with two Examples one for Mac and one for the iPhone. The Wrapper class has the same source code for both platforms. Here you can find the Mac Example Source Code and the iPhone Example Source Code. This is a simple usage example: Sqlite *sqlite = [[Sqlite alloc] init]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *writableDBPath = [documentsDirectory stringByAppendingPathComponent:@"SQLiteTest.db"]; if (![sqlite open:writableDBPath]) return; ...
User-Generated Help: Future of Documentation? (1)
share
digg
by
Lindsey Robbins (0)
on
From the Doc Side (0)
5 days, 15 hours
ago
permalink
Of late, I’ve been intrigued by something YouTube is doing. They are requesting user-submitted documentation in the form of videos. Well the video part makes sense, right? However, it’s interesting they are reaching out to the audience to supplement their official documentation. Is it fair to put the burden on the users? Fun for users to participate in developing help?They are now doing a second round of submissions. You can read about it in their ...
Painting Up There (1)
share
digg
by
Parmanoir (0)
on
Planet Cocoa (0)
5 days, 15 hours
ago
permalink
I wondered how to paint "up there". It's easy once you know where to look :) The Cocoa View hierarchy only talks about the hierarchy of controls in the content view, laid out in Interface Builder. That view hierarchy also extends up — the content view is hosted by a frame view which paints the window itself : background, title, shadow. That frame view is the parent of the window Close/Minimize/Maximize controls and of the ...
Scoped Objects in Objective-C (2)
share
digg
by
Guy English (0)
on
Kickingbear Blog (0)
5 days, 16 hours
ago
permalink
Object Scope and Lifetime In Objective-C the lifetime of an object is not governed by the scope in which it appears - it is managed manually by the programmer. - (id) retain, -(void) release, and - (void) autorelease are the methods we use to let the runtime know if we’re still interested in an object or not. Other variables in Objective-C don’t have to be managed in this way. Structures can be declared and will ...
WANT: Dock Icon Throw Pillows (17)
share
digg
by
Mike Schramm (23)
on
The Unofficial Apple Weblog (TUAW) (93)
6 days, 8 hours
ago
permalink
Filed under: Humor, Cult of Mac, Odds and ends, Stocking Stuffers, Deals We're in the middle of gift guide season right now, but here's a gift that would fit great on any Mac user's list: Throwboy has designed a set of throw pillows after some of the Dock's most famous icons, including iTunes, iPhoto, Dashboard, and the Finder. They're 100% fleece, hand-crafted, and look cuddly as all get out.Sure, a computer icon might seem like ...
-
Jim Christian said:
Raa! Want!!
-
Shaun said:
i like the finder one!
-
jbruin said:
"We're in the middle of gift guide season right now, but here's a gift that would fit great on any Mac user's list: Throwboy has designed a set of throw pillows after some of the Dock's most famous icons, including iTunes, iPhoto, Dashboard, and the Finder. They're 100% fleece, hand-crafted, and look cuddly as all get out."