FROM : David Rocamora
DATE : Mon Apr 11 01:22:56 2005
Serge,
> But what method is calling init in each case? What code do you have in
> makeWindowControllers: ?
I guess I'm not sure how to figure that out with the debugger. Nothing
I wrote calls init. How can i determine this?
> Your document object isn't being loaded from a nib file, so
> awakeFromNib: is not getting called. Like I said above, I think the
> method you want is windowControllerDidLoadNib:.
Using breakpoints in the debugger I have found that
windowControllerDidLoadNib: does not run but awakeFromNib: is called
everytime a new document is created.
> If you look at "self" in the debugger, I have a feeling you'll find
> that the "artworks" objects are not the same because the document
> objects are not the same.
I do find this in the debugger. artworks is different because there
are different document objects. But shouldn't dataRepresentationOfType
be dealing with the same document object?
Thanks again,
Dave
DATE : Mon Apr 11 01:22:56 2005
Serge,
> But what method is calling init in each case? What code do you have in
> makeWindowControllers: ?
I guess I'm not sure how to figure that out with the debugger. Nothing
I wrote calls init. How can i determine this?
> Your document object isn't being loaded from a nib file, so
> awakeFromNib: is not getting called. Like I said above, I think the
> method you want is windowControllerDidLoadNib:.
Using breakpoints in the debugger I have found that
windowControllerDidLoadNib: does not run but awakeFromNib: is called
everytime a new document is created.
> If you look at "self" in the debugger, I have a feeling you'll find
> that the "artworks" objects are not the same because the document
> objects are not the same.
I do find this in the debugger. artworks is different because there
are different document objects. But shouldn't dataRepresentationOfType
be dealing with the same document object?
Thanks again,
Dave
| Related mails | Author | Date |
|---|---|---|
| David Rocamora | Apr 10, 19:58 | |
| Serge Meynard | Apr 10, 20:30 | |
| David Rocamora | Apr 10, 22:03 | |
| Shawn Erickson | Apr 10, 22:23 | |
| David Rocamora | Apr 10, 22:56 | |
| Serge Meynard | Apr 11, 00:00 | |
| David Rocamora | Apr 11, 00:34 | |
| Serge Meynard | Apr 11, 00:45 | |
| David Rocamora | Apr 11, 01:22 | |
| Serge Meynard | Apr 11, 01:59 | |
| mmalcolm crawford | Apr 11, 03:37 | |
| David Rocamora | Apr 11, 18:01 |






Cocoa mail archive

