Do i need to call NSTreeController setContent: in awakeFromNib?
Do i need to call NSTreeController setContent: in awakeFromNib?
- Subject: Do i need to call NSTreeController setContent: in awakeFromNib?
- From: Florian Soenens <email@hidden>
- Date: Tue, 4 Nov 2008 11:44:01 +0100
Hi list,
i am new to bindings (not Cocoa) and i set up a simple NSOutlineView
bound to an NSTreeController.
I created a simple plist file with a tree structure and load that in a
NSMutableDictionary at awakeFromNib:
The purpose is that my NSOutlineview gets populated immediately at
startup but it doesn't. From the moment i add something to the
NSTreecontrollet by using add: that is bound to a button in IB, my
NSOutlineView does get updated, so i guess that triggered the
refreshing of the NSOutlineView.
However, when i add this line of code to awakeFromNib: my
NSOutlineView gets populated at startup as it should:
[treeController setContent:[self data]]; (where data is an array of
objects)
Is this normal behaviour? do i need to call this method? I have seen
examples where people don't use it.
Can anyone point me in the right direction?
Thanks in advance.
Florian.
Looking for Web-to-Print Solutions?
Visit our website : http://www.vit2print.com
This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information and/or information protected by intellectual property rights.
If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful.
If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof.
We may monitor e-mail to and from our network.
NSS nv Tieltstraat 167 8740 Pittem Belgium
_______________________________________________
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