Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Resorting NSOutlineView rows in response to edits



Hi

I have a dynamically generated NSOutlineView that displays Projects and pages like so

project name
	page 1
	page 2
	page 3
	page 4
	page 5

I got the page number editing working and it triggers other events (like writing the new page number to an SQL database) but I can't get the NSOutlineView to reorder the pages. Say the user changes "page 4" to "page 10", I want the new ordering to be

project name
	page 1
	page 2
	page 3
	page 5
	page 10

I'm able to reorder the items in the data source in response to edits, but the NSOutlineView doesn't seem to notice the change. The data source has no knowledge of the NSTreeController so it can't call the controllers "rearrangeObjects"

Is there an available binding that will automatically trigger a reorder event on the NSTreeController? If so, how would I go abut setting this up programatically

Thanks for any help
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.