Re: NSTableView questions
Re: NSTableView questions
- Subject: Re: NSTableView questions
- From: "Clint Shryock" <email@hidden>
- Date: Tue, 25 Sep 2007 12:37:52 -0500
>
> To prevent all entries from being edited in a NSTableView is it
> enough if I return NO to shouldEditTableColumn:row: ?
> Is there a better way to do this?
you can make a column un-editable in interface builder. click on the column
of your table and de-select "editable".
I want to display a list of items stored in a file in a table. How do
> I initialize my dataSrc array when the application is launched? I can
> write a method in the dataSrc to open the file and read in the
> contents. But how do I ensure the method will be called when my
> application starts up?
set up the data source array in the initialization of your controlling
object. so if you have AppController with an NSMutableArray property you
would setup initialize / setup the data source array in AppControllers
init. i guess this assumes you have AppController instantiated in your nib
file
+Clint
On 9/25/07, Hrishikesh Muruk <email@hidden> wrote:
>
> Couple of questions-
>
> To prevent all entries from being edited in a NSTableView is it
> enough if I return NO to shouldEditTableColumn:row: ?
> Is there a better way to do this?
>
> I want to display a list of items stored in a file in a table. How do
> I initialize my dataSrc array when the application is launched? I can
> write a method in the dataSrc to open the file and read in the
> contents. But how do I ensure the method will be called when my
> application starts up?
>
> Thanks
> Hrishi
>
>
> ---
> www.greenwaysroad.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
>
_______________________________________________
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