• 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: NSTableView questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTableView questions
      • From: "I. Savant" <email@hidden>
References: 
 >NSTableView questions (From: Hrishikesh Muruk <email@hidden>)

  • Prev by Date: how to build finalcut-pro style gui apps?
  • Next by Date: Re: how to build finalcut-pro style gui apps?
  • Previous by thread: NSTableView questions
  • Next by thread: Re: NSTableView questions
  • Index(es):
    • Date
    • Thread