Re: Two Newbie Questions
Re: Two Newbie Questions
- Subject: Re: Two Newbie Questions
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 16 Feb 2011 16:21:25 -0700
On Feb 16, 2011, at 3:56 PM, Bruce Cresanta wrote:
> I have an NSTableView set up to a datasource of a single array. When I run my code, I get two columns (the default in IB) instead of just one with the data duplicated in each column. I only want one column, how best to achieve this?
You can set the number of columns in the table view in IB's table view inspector. If you're clicking on the table view and seeing the inspector for a scroll view instead, try clicking again. Table views are normally enclosed inside a scroll view.
> NSButton can be set up to perform a selector in IB on click. How do you set Target/Action for a button in code?
Did you see the -setTarget: and -setAction: methods in the headers or documentation?
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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