This link has been bookmarked by 36 people . It was first bookmarked on 14 Nov 2007, by Luis G Salas.
-
22 Feb 12
-
You can use the NSRuleEditor and NSPredicateEditor classes to get the familiar rule-editing interface for your app.
-
NSMenuItem now has a -setView (and a -view) method, to put arbitrary views in your menus without resorting to Carbon. Animation via timers will work too, but pay attention to the runloop you use (it has to be the event-tracking runloop mode, since it’s in a menu).
-
If you’re explicitly using NSLayoutManager for anything, you should know that it now supports non-contiguous layout. This could be a massive performance improvement for your app, if you’re willing to take the time to learn how the implementation has changed. Some very welcome additional minor improvements include getting the baseline offset for a given font, and the ability to display invisibles natively.
-
Safari 3 has a nice visual indicator for the results of a Find operation; it’s like a yellowish lozenge shape which pops up over the body of text you’re searching. You have access to this too, via showFindIndicatorForRange: in NSTextView. Use it for good, rather than evil.
-
Everyone in the Cocoa development world uses CTGradient, and it’s rather awesome. In Leopard, Apple finally catches up with Chad and offers us NSGradient. Check out its methods designed to help you build gradient-editing UI too.
-
Similarly, PDFView (which was already available in Tiger; thanks to Peter Hosey for the correction) gives you Preview-style browsing, selection, zooming and so on for PDFs, and the new PDFThumbnailView even gives you the list of pages down the side. Again, zero code.
-
-
27 Nov 10
-
11 Jun 10
-
05 Nov 08
-
07 May 08
-
13 Apr 08
-
13 Dec 07
-
14 Nov 07
-
31 Oct 07
-
30 Oct 07
-
indigo11As Cocoa developers, whenever we get a major new release of Mac OS X, we have to spend time familiarising ourselves with the new APIs and facilities on offer
api apple article cocoa development mac programming leopard osx
-
29 Oct 07
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.