On Jul 26, 2008, at 6:59 PM, James W. Walker wrote:

When designing an NSTableView in IB, I can highlight one of the columns. That information is clearly stored in the file, because if I close and reopen, the highlight is still there. But after I load the nib, [myTable highlightedTableColumn] returns nil. Is there any way to get that nib-highlighted column at run time?

I'm fairly sure that the highlight in IB is just meant to keep track of what you were editing, not a real part of the nib.

If you want to set the highlight of a particular column then create an IBOutlet of NSTableColumn and connect it to the column in IB, then in your -awakeFromNib (or wherever) call setHighlightedTableColumn: with that outlet. (Note that this highlight is different than the one in IB.)

--Nathan


_______________________________________________

Cocoa-dev mailing list ([email protected])

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