Edit AllPages

Here is a category that makes an NSArrayController a valid IKImageBrowserDataSource. Additionally, the example implementations of imageBrowser:moveItemsAtIndexes:toIndex: I�ve seen are buggy. The one below seems to work flawlessly.

Note that if you have the array controller�s arrangedObjects bound as the content of the IKImageBrowserView, you still need to set the array controller as the IKImageBrowserView�s dataSource and to implement imageBrowser:moveItemsAtIndexes:toIndex to get rearranging to work. Hopefully Apple will fix that� � BryanWoods

// NSArrayController+IKImageBrowserDataSource.m

@implementation NSArrayController (IKImageBrowserDataSource)