.comment-link {margin-left:.6em;}

The words are just like ... words, I guess.

Tuesday, April 08, 2008

iPhone has search, finally!

So, I've hit the ground running again with my mobile, thanks to a late release of the newest firmware on apple's part! But I did find a nugget that has me excited: View yourself!


iPhone Search.tiff



Labels: ,

iPhone... it's ALIVE

So, I'm downloading 4a240d iPhone OS!


Should fix the expire issue, thanks Jobsy!



Labels: ,

Pink screen of death...

So... my phone is temporarily dead... Apple forgot to publish an update to the firmware before the latest one expired. Now all iPhone 2.0 users are pissed beyond belief!



Labels: ,

Friday, April 04, 2008

First useful piece of Mac Code!

Hey everybody...


Today in response to some of my own tinkering and the forum at http://discussions.apple.com/thread.jspa?messageID=6978579#6978579 I have created my first useful program in Objective-C and MacOS. The utility is a command line application that will mount and return the path to the Leopard time machine volume.


The utility can be downloaded here http://rapidshare.de/files/39024900/GetTimeMachinePath.html


The souce code is as follows:



#import <Foundation/Foundation.h>


#import <AppKit/AppKit.h>


#import <CoreData/CoreData.h>



FSRef* getTimeMachineVolume()


{


NSData *timeMachinePList = [NSData dataWithContentsOfFile:@"/Library/Preferences/com.apple.TimeMachine.plist"];


NSString *errorText;


NSDictionary *timeMachineProperties = [NSPropertyListSerialization propertyListFromData:timeMachinePList mutabilityOption:NSPropertyListImmutable format:NULL errorDescription:&errorText];


NSData *backupAlias = [timeMachineProperties objectForKey:@"BackupAlias"];



AliasHandle aliasHandle = (AliasHandle)NewHandle([backupAlias length]);



[backupAlias getBytes: *aliasHandle];



FSRef *volumePath = malloc(sizeof(FSRef));


Boolean wasChanged;



OSErr resultOfResolve = FSResolveAlias(NULL, aliasHandle, volumePath, &wasChanged);


if (resultOfResolve != noErr)


return nil;



DisposeHandle((Handle)aliasHandle);



return volumePath;


}



int main (int argc, const char * argv[]) {


NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];



// insert code here...


char *timeMachinePOSIXPathString = malloc(1024 * sizeof(char));


FSRef *timeMachineFSRef = getTimeMachineVolume();


FSRefMakePath(timeMachineFSRef, (UInt8*)timeMachinePOSIXPathString, 1024 * sizeof(char));


free(timeMachineFSRef);



printf(timeMachinePOSIXPathString);



[pool drain];


return 0;


}




Labels:

Tuesday, April 01, 2008

April Fools, and RSS

I've found it very hard to read any of my RSS subscriptions today, as everyone on the planet decided that there so funny, that it must needs be shared. If your going to post something thats not true... please put an april fools at the bottom!




Labels: