Re: Array Problems
Re: Array Problems
- Subject: Re: Array Problems
- From: David Rocamora <email@hidden>
- Date: Sun, 10 Apr 2005 18:34:42 -0400
Serge,
> I see no obvious reason why init would get called twice, and why two
> different document objects would seem to be used at the same time.
Watching it through the debugger shows that init is called, then
makeWindowControllers, and then init again. This is why it is making
two objects.
> I'm assuming that [self updateUI] does stuff with the outlets in your
> main window. This won't work, since the outlets have not been connected
> yet; you should move that call to the windowControllerDidLoadNib:
> method. That might fix it...
I put [self updateUI] in awakeFromNib but this does not stop the double init.
If I move the allocation and initialization of the array to
awakeFromNib I create only one array but when I go to save it with
dataRepresentationOfType it says that the array is null.
Like I said before I'm pretty new at this but it seems like things in
dataRepresentationOfType and dealloc for myDocument have different
objects for the same names that work differently in the rest of the
program. So this has me pretty stumped.
Thanks,
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden