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;



@end



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 🙂


Join the Conversation

1 Comment

  1. IS there anyone that can make me a SIMPLE cocoa safari web app (using WebKit) – All I need it to do is load a predesignated URL. If someone could do the code, I am sure it would take ten minutes or less. I have tried every tutorial on the Web. All I need is the code – with comments on where to add/change the URL. I have one working where I push a button and it loads a URL – but I want the URL to load upon app launch.

    Please help or direct me to someone if you have the time.

    Thank You – David

    PS Found you on a Blog

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.