Re: Class init two times
Re: Class init two times
- Subject: Re: Class init two times
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 14 Feb 2008 14:46:46 +0100
Le 14 févr. 08 à 14:32, Davide Scheriani a écrit :
hi ppl!
ive got this Document Based app with some classes and bindings.
in IB I had to instantiate the mydocument object,add some bindings
array and object.
Maded some connections etc etc..
My problem is that now the class MyDocument is called two times!
why? how can I solve this? I need only one time to be instantiate.
tnx,bye
You should not instantiate a new document in the nib file as the
document is the file owner by default.
You should bind your value directly to the file owner, or you can
create an NSObjectController instance and connect the controller
content outlet to the "File's Owner".
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden