Daniel's Stuff

I write code

Month: April 2007

Cocoa WebKit

I’ve been playing with the Cocoa WebKit over the last week or so and have rewritten my blogThing application to use it.  So far I’m quite pleased with the way things are coming along 🙂

It lets me do some very interesting things such as paste in formatted text from XCode


//  DPKeychain.h

//  iSpeak


//  Created by Daniel Parnell on 26/07/04.

//  Copyright 2004 Daniel Parnell. All rights reserved.


#import <Cocoa/Cocoa.h>

#import <CoreFoundation/CoreFoundation.h>

#import <Security/Security.h>

#import <CoreServices/CoreServices.h>

@interface DPKeychain : NSObject {

    SecKeychainRef keychain;


+ (DPKeychain*) defaultKeychain;

+ (DPKeychain*) keychainWithPath: (NSString*) aPath;

– (DPKeychain*) initWithPath: (NSString*) aPath;

– (void) setPassword: (NSString*)aPassword forName: (NSString*) aName andService: (NSString*) aService;

– (NSString*) getPasswordForName: (NSString*) aName andService: (NSString*) aService;

– (bool) containsPasswordForName: (NSString*) aName andService: (NSString*) aService;

– (void) removePasswordForName: (NSString*) aName andService: (NSString*) aService;


Inline image support is also working really nicely 🙂
I still need to get things like automatic link creation working, but that’s pretty straight forward.

To top it all off I’ve also made use of CoreGraphics transitions to make things look a little prettier.  That’s been heaps of fun 🙂