• 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
Re: Class init two times
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Class init two times (From: Davide Scheriani <email@hidden>)

  • Prev by Date: Class init two times
  • Next by Date: NSMatrix connections
  • Previous by thread: Class init two times
  • Next by thread: NSMatrix connections
  • Index(es):
    • Date
    • Thread