Mailing Lists: Apple Mailing Lists

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

NSTreeController problems



I have an NSOutlineView linked to a NSTableView.  The
TableView is bound
to an NSArrayController which is set to a Note-like
entity (i.e. viz. OutlineView, 
Core Data example app).  The Outline view is bound to
a NSTreeController set to the same entity.  The
TreeController gets its contentSet from
selection.children of the ArrayController.  This app
is working fine but......breaks when I  
add drag-and-drop,  copy-and-paste, expansion state
capabilities to the OutlineView.  

For example,  I've tried to adapt Matt Holiday's "DRAG
AND DROP OUTLINE EDIT" 
(http://homepage.mac.com/matthol2/iblog/index.html) 
to reflect my UI design, but when I add in the
TableView and ArrayController,  either the
TreeController does not behave according to the
ArrayController selection, and/or the OutlineView
methods "createNote", "createChildNote" etc.  fail.

Clues, suggestions?? Example code?

Nick Crosbie


		
____________________________________________________ 
Do you Yahoo!? 
Which two Aussie media players are joining forces to bring you the best content? Find out
http://promo.yahoo.com/yahoo7
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
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.