El 08/06/2008, a las 13:31, Norbert Heger escribió:


On Jun 8, 2008, at 11:28 , Joan Lluch (casa) wrote:

An NSOutlineView which is binded to a NSTreeController gives instances of NSTreeControllerTreeNode in the item (or items) parameter of their datasource or delegate methods. For example:

- (BOOL)outlineView:(NSOutlineView *)outlineView writeItems: (NSArray *)items toPasteboard:(NSPasteboard *)pboard

would give an array of NSTreeControllerTreeNode objects in the items parameter.

- (BOOL)outlineView:(NSOutlineView *)sender isGroupItem:(id)item

would give an instance of a NSTreeControllerTreeNode

As far as I know, this class is not documented. How can I access (or know) the actual object in the NSTreeController that the item is refering to.


See this thread:
http://www.cocoabuilder.com/archive/message/cocoa/2008/3/25/202235

n.h.


Thanks a lot. Somehow I hadn't figured out that a NSTreeControllerTreeNode was a subclass of a NSTreeNode._______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to