Re: NSViewController Binding Problem continued
Re: NSViewController Binding Problem continued
- Subject: Re: NSViewController Binding Problem continued
- From: Jonathan Dann <email@hidden>
- Date: Fri, 18 Jul 2008 21:48:10 +0100
Hi Ivy,
You can bind the representedObject in NIB, I do it all the time. My
rO is an NSPersistentDocument subclass, which is set immediately after
the view controller is -init-ed. The bindings in the nib are only set
up after -loadView is called, which occurs after something in your app
asks for the -view. So as long as the rO is not nil when -loadView is
called then it should bind properly. Granted though I haven't tried
it with an NSController subclass as the rO.
Have you tried binding it in code during -awakeFromNib?
Jonathan
www.espresso-served-here.com
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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