• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: highlighted table column in nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: highlighted table column in nib


  • Subject: Re: highlighted table column in nib
  • From: Nathan Kinsinger <email@hidden>
  • Date: Sun, 27 Jul 2008 00:56:48 -0600


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@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:
This email sent to email@hidden


References: 
 >highlighted table column in nib (From: "James W. Walker" <email@hidden>)

  • Prev by Date: IB view transitions, CA, NSWindow animation
  • Next by Date: Re: Accessing a property of a returned object?
  • Previous by thread: highlighted table column in nib
  • Next by thread: Accessing a property of a returned object?
  • Index(es):
    • Date
    • Thread