Archive for the ‘Mac OS X 10.5 Leopard’ Category

Leopard Developer Application Technologies Overview

The Application Technologies Overview is the third instalment in the Leopard Technology Series for Developers and was partly authored by James Duncan Davidson.

It briefly covers integrating your application with Time Machine, iChat, and Calendar Store. More interesting is the new Scripting Bridge. It’s a replacement for using AppleScript in your app to communicate with another app. The “Scripting Bridge uses native Cocoa data types, such as NSString and NSArray, requires far less code than using an NSAppleEventDescriptor, and runs more than twice as fast as a precompiled NSAppleScript”. An example is given for getting the current track name from iTunes.

NSString *currentTrackName = [[iTunes currentTrack] name];

As far as I know, the Scripting Bridge hasn’t been mentioned in any Leopard discussions. It appears the Bridge lets a developer write Cocoa, but paraphrasing the classes and commands in an application’s Scripting Dictionary. If so, this will be quite tedious for developers to implement. In practice, they’ll have to write an AppleScript to determine how an application’s Scripting Dictionary works. Then developers will have to translate the AppleScript into the equivalent Cocoa code. It would have been nice if Apple could have provided practical information how developers will work with the Scripting Bridge. As well, the example given only demos the Scripting Bridge getting data from an application. But does the Scripting Bridge work both ways? Will it also send data to another application, and does it provide for the receiving application transforming the data and returning the result to your application? If the Scripting Bridge is two-way then the benefits gained by using it will far outweigh the mucking around us developers have to do with NSAppleScript and friends.

The article also mentions Core Animation and 64/32-bit hardware support, but these are treated too briefly to get an idea of how they might be used in an application.


Leopard Developer Tools Overview

Apple have published the second article in their Leopard Technology Series for Developers. This one’s about the updated dev tools in 10.5.

The Xcode Editor improvements will be nice, especially highlighting compile-time errors and warnings. Fixing these is a pain in 10.4. You have to click the red, round, error icon in the bottom right of the Xcode window to jump to the first error. With Xcode 3 a bubble appears at the line where the error occurred. This doesn’t appear to be much of an improvement. It appears you still have to scroll thru your file to find the bubble. I’d much rather be presented with a list of errors in a separate HUD window so that I could pick an error and jump immediately to it and then inspect the info in the bubble. Don’t get me wrong, the bubble feature is a definite improvement because it provides info about, and an easy way to correct errors.

Code folding has been added to the Xcode Editor. This feature needs a shortcut key if it is to be useful. (I loathe dragging a mouse about on screen.) I wonder if the folding feature is now available to all Cocoa apps via NSTextView or some other API?

The new Research Assistant in Xcode is an excellent addition. In 10.4 you have to swap between the Documentation window and your code window. But in 10.5 you’ll be able to view the Research Assistant window right beside your code window.

The article also discusses Objective-C’s automatic garbage collection feature, the new for iterator, and a simpler way to create accessor methods, similar to Ruby.

Interface Builder gets an update in 10.5 too. Unfortunately the screen shots are very small and I could barely see details of the new Core Animation properties in the Inspector window and the new UI palette.

Lastly, the article discusses ‘the poor man’s source code control’ feature – Project Snapshots. I’m really looking forward to this so I can go to town on my source code and being able to simply revert my changes without having to muck around with a SCM system.

AeroXperience on Mac OS X 10.5 Leopard

AeroXperience (a forum for Windows Vista developers) gives us more intel on Mac OS X 10.5 (aka Leopard):

  • Disk recovery tools now built into Disk Utility,
  • an improved Firewall,
  • dictionary lookups and mathematical calculations from Spotlight,
  • new developer contols (Mail-like buttons)