• 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
NSTableView, its data source, and their document.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView, its data source, and their document.


  • Subject: NSTableView, its data source, and their document.
  • From: Francis Derive <email@hidden>
  • Date: Thu, 9 Jun 2005 16:08:17 +0200

Bonjour !


An NSDocument object has an NSTableview IBOutlet.
The data source of the NSTableView outlet is another object - an NSObject object.
The NSObject object implements the data source methods - say tableView:(NSTableView *)setObjectValue:(id) forTableColumn:(NSTableColumn *) row:(int).
In the implementation of this data source method, I can easily refer to the NSTableView object which comes as a parameter, but how can I refer to the NSDocument object of which the NSTableView object is an outlet ?
This is in order to be able to say to the NSDocument object that is has been edited - through the data source method tableView:setObjectValue:forTableColumn:row: - by doing something like [theDocumentObject updateChangeCount:NSChangeDone].


Merci beaucoup.

Francis Derive

_______________________________________________
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


  • Follow-Ups:
    • Re: NSTableView, its data source, and their document.
      • From: j o a r <email@hidden>
  • Prev by Date: [Moderator] Re: Why are BOOL and bool distinct types?
  • Next by Date: Re: Universal Binaries, x86 and compatibility...
  • Previous by thread: Re: NSLocalizedString() in bundles
  • Next by thread: Re: NSTableView, its data source, and their document.
  • Index(es):
    • Date
    • Thread