• 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
View based outline view and custom NSTableCellViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

View based outline view and custom NSTableCellViews


  • Subject: View based outline view and custom NSTableCellViews
  • From: Jean Suisse <email@hidden>
  • Date: Thu, 06 Sep 2012 16:46:54 +0200

Hello,

In the content view of the window of a freshly created NIB, I have a view-based outline view. The file owner is set to be MyWindowController. The outlineView is the standard, preconfigured setup, dragged from IB.
Now, I would like to modify the "default" views provided in this standard setup, to integrate my custom controls. And I am stuck on the part where, at runtime, I access those custom controls to make them display the appropriate information.

If I add, for instance, an NSTextField label to the dataView, how do I access it at runtime to change its value ? I know where I should do that. But I can't do it because of the lack of outlet.
Instinctively, I would create a subclass of NSTableCellView (MyTableCellView), set the NSTableCellView to be MyTableCellView in IB and connect all the outlets to be able to do this at runtime : [MyTableCellView.MyExtraTextField setXXXValue: …];

But IB is not letting me do that. What did I miss ? They do that in the example provided by apple.

Best regards,
Jean


_______________________________________________

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: View based outline view and custom NSTableCellViews
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: NSData DataWithContentsOfURL within a protocol handler
  • Next by Date: Re: NSData DataWithContentsOfURL within a protocol handler
  • Previous by thread: Re: autosavesInPlace and sandbox
  • Next by thread: Re: View based outline view and custom NSTableCellViews
  • Index(es):
    • Date
    • Thread