Re: NSTableColumn setHidden: and IB
Re: NSTableColumn setHidden: and IB
- Subject: Re: NSTableColumn setHidden: and IB
- From: David Scheidt <email@hidden>
- Date: Sun, 26 Apr 2009 01:04:59 -0400
On Apr 26, 2009, at 12:54 AM, Steven Riggs wrote:
Make a class with IBOutlets to each tableColumn and in code, tell
the tableColumns if they should be hidden. I'm not aware of an IB
only solution for this one.
That's a better solution than the one that had occurred to me, which
was to subclass NSTableColumn to add an action.
Is there a deep reason that there's not an IB action for this?
Steven Riggs
On Apr 26, 2009, at 12:42 AM, David Scheidt <email@hidden>
wrote:
I've got a 10.5 app, which has a bunch of NSTableViews. I'd like
to allow the user to choose which columns appear in the tableviews,
using a popup contextual menu. so, that should be a simple matter
of defining the NSTableColumns, establishing their bindings, making
a menu of the table view's header, and hooking that up to the
setHidden: method of the NSTableColumns; however, there doesn't
appear to be a way to do that in IB. Am I missing something? (I
hope I am.) How do I do this?
_______________________________________________
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:
@me.com
This email sent to email@hidden
_______________________________________________
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