Leopard and You
October 26th, 2007 by Joe RanieriFinally, Leopard’s been released and we can talk about the various things that are new. Leopard adds a bunch of fun new things for developers:
- FSEvents: All file system events are now logged. You can monitor events in real time, or get a list of changes for a certain period of time after the fact. In order to have a minimal overhead, only the directory in which the change occurred is logged.
- Core Animation: Animating Cocoa views can’t get much easier. Simply send the message to the view’s animator and it’ll handle all the animation for you. Here’s an example that’ll fade the view out:
[[myView animator] setHidden:YES]; - Objective-C 2.0: Finally Objective-C plays a bit of catch up. New are properties (handier than you’d think), garbage collection, and for each loops.
- QuickLook: Now your application can display previews in Finder too.
- Scripting Bridge: Use Cocoa objects to control scriptable apps, with the native Objective-C syntax.
- CoreText: No more messing with ancient APIs to draw text at a lower level. I’m looking at you ATSUI.
- Cocoa Bridges: Use $language to write native Mac OS X apps. Ruby and Python are supported for now (through enhanced versions PyObjC and RubyCocoa) but there may be more in the future.
- Calendar Store: You can now access iCal’s to-dos, calendars, events and more.
- Instruments: Find out what your application is really doing. Instruments is built around DTrace and allows you to monitor many things (network use, disk activity, spins, object leakages, etc) at once and compare them between multiple runs.
The list could go on a lot more, but that’s most of the major things, excluding private frameworks. We’ll be blogging about some of them in the following weeks :-).