Mailing Lists: Apple Mailing Lists

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

Re: changing cell controls in an NSOutlineView



William Irving Zumwalt wrote on Wednesday, December 27, 2006:
>Now what I'd like to do is change only specific cells to an NSComboBox
>or other. Anyone know of any examples on how to do something like
>this? For example, of the 15 child nodes in the outline view, I'd like
>#3 and #8 to be NSComboBoxes.

I think this is basically what you want.

    <http://www.stepwise.com/Articles/Technical/2003-12-20.01.html>
    
You'll have to adapt the code from NSTableView to NSOutlineView, but the basic technique is the same. Essentially, the NSCell needs to map an instance of a row with an NSView.

-- 
James Bucanek
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

References: 
 >changing cell controls in an NSOutlineView (From: "William Irving Zumwalt" <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.