• 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: about the objecttableinfo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: about the objecttableinfo


  • Subject: Re: about the objecttableinfo
  • From: Wain <email@hidden>
  • Date: Sun, 10 Sep 2006 17:55:40 +0100

OK,

So the project previously worked in PB, did you create it and have you changed it during the upgrade to XCode?

I ask because the data source must have been set previously, and connections don't 'just break'.

I suppose I'm making a fair assumption that your table view isn't being filled with data when you run the app...

The connection could have been made in code, but assuming you haven't changed anything...
There could be a line like this:


[myTableView setDataSource:self];

this would be in the class containing the objectValueForTableColumn implementation, therefore self is an instance of your data source.
where myTableView comes from I'll ignore for the time being...


or the link could have been made entirely in Interface Builder, this is done by control dragging a connection from the table view to the instance of your data source and selecting 'dataSource' in the inspector.

If none of this makes sense you will need to go over some of Apples tutorials or buy a nice Cocoa book.

I don't know of any setting in XCode which could prevent any of this (specifically) from working, if there is I would like to know.

Hope your getting closer (if not you could supply the project and I'll have a browse).

Wain

On 10 Sep 2006, at 17:11, raju raju wrote:

Thanks for your help and suggestion.I have gone through the above document previously,but it is not clear as how the function objectvaluefortablecolumn gets called.

objectValueForTableColumn is an NSTableView data source method, not
sure exactly what you mean by 'under the Tableview'.

Under the TableView I meant as how do you make sure the function under the object NSTableView is getting called.I tried to debug the application.But when I put the break point inside this function it never gets called.There I am really confused.


objectValueForTableColumn is called by the table view when it
requires new data from the data source

I would like to add further is that the project I am working on is preoviously build on project builder.

Did it work then?
If so it sounds like the link between the table view and the data
source may have broken somehow...

Yes it was working then.Can you help me as how to recreate the link between table view and the data source.




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >about the objecttableinfo (From: raju raju <email@hidden>)

  • Prev by Date: Regaining focus for NSTextField
  • Next by Date: Re: Tight NSBox around view
  • Previous by thread: about the objecttableinfo
  • Next by thread: Regaining focus for NSTextField
  • Index(es):
    • Date
    • Thread