Dashcode has expired on time, but Leopard wasn't delivered on time, and now we're left for at least 3 more months without this excellent, free development environment.
Since Apple don't seem to be releasing another beta until Leopard is out it looks like we're forced to look to alternative methods of widget development. So, either someone needs to get in there and patch Dashcode around the expiry or you can use my script to get it going again.
Patch around the expiry
Sadly for the time being, I've not too familiar with Objective-C and developing for the Mac. However programs run on logic, so this is how far I've got:
- The date we're looking for is 2007-07-15
- I've run
stringson the Dashcode package and
grep'ed for the date to no avail
- It makes sense to think the expiry is being checked using two NSCalendarDate to compare and continue
- Running the ObjectAlloc app (/Developer/Applications/Performance Tools/) I can see the NSCalendarDate objects being created, and most importantly, can see one of the objects contains: 2007-07-15 00:00:00 +0100, and the other 'now'.
- Based on all of this, I have to assume the date is hardcoded in to either the binary or it's resources, therefore it can be changed - it just needs the year leaping forward.
If anyone comes up with a patch or hack - that would be superb.
Using AppleScript to get around the expiry
I've managed to knock together a simple AppleScript that will reset the date, run Dashcode and then set the date back. The only prerequisite is that you set the date and time automatically via the Date & Time System Preference panel.
set username to "YOURUSERNAME" set passwd to "YOURPASSWORD" set bypass_year to "2007" set bypass_month to "05" set bypass_day to "14" set date_cmd to "date " & bypass_month & bypass_day & "`date +%H%M`" & bypass_year -- set the date to allow Dashcode to open do shell script date_cmd user name username password passwd with administrator privileges tell application "Finder" run application "Dashcode" end tell tell application "System Preferences" activate -- forces a reset on the date set current pane to pane "Date & Time" quit "System Preferences" end tell tell application "Dashcode" activate end tell