Archive for the 'Mac OS X' Category
More progress on the HP48GX emulator for the iPhone
A HP48GX emulator for the iPhone and iPod Touch
FreeTDS and my new Mac Pro
Windows Live compression update
PSMTabBarControl and Interface Builder 3.0
OS X 10.5.6
Windows Live Mail
HTTPMail 1.52 released
I’ve received quite a lot of email about 10.5.3 breaking the plugin, and finally got around to looking into it today. I have uploaded a new version of the plugin that seems to work for me ![]()
As always the latest version can be grabbed from my downloads page.
Weird characters in the previous post
WebView woes
- (unsigned)webView:(WebView *)sender dragDestinationActionMaskForDraggingInfo:(id <NSDraggingInfo>)draggingInfo {
NSPasteboard* pb = [draggingInfo draggingPasteboard];
if([pb availableTypeFromArray: [NSArray arrayWithObject: NSFilenamesPboardType]]) {
// @TODO: this code assumes that any file dragged in is an image! Bad things will probably happen if they aren’t
NSArray* filenames = [pb propertyListForType: NSFilenamesPboardType];
NSMutableString* html = [NSMutableString string];
for(NSString* filename in filenames) {
[html appendFormat: @"<img src=\"%@\"/>", [[[NSURL alloc] initFileURLWithPath: filename] absoluteString]];
}
[pb declareTypes: [NSArray arrayWithObject: NSHTMLPboardType] owner: self];
[pb setString: html forType: NSHTMLPboardType];
}
return WebDragDestinationActionAny;
}


Dreamhost