FROM : Antonio Nunes
DATE : Sun Jul 02 20:01:19 2006
Hi,
In my app the user can bring up an editor. When its window is inited
I call a method that initialises an array that is an instance
variable of the window controller. At the end of the init method,
immediately before it returns, the retain count for that array is 1.
The next time the framework enters code in the window controller, on
awakeFromNib, putting a break point there at the first line of code
and then checking the retain count of the array gives a count of 4.
The array is bound to an NSArrayController, and when the controller
awakes from NIB, the array, also there, already has a retain count of 4.
Anybody any ideas what causes the array to be retained these
additional times?
Thanks,
António
-----------------------------------------------------------
And you would accept the seasons of your
heart, even as you have always accepted
the seasons that pass over your field.
--Kahlil Gibran
-----------------------------------------------------------
DATE : Sun Jul 02 20:01:19 2006
Hi,
In my app the user can bring up an editor. When its window is inited
I call a method that initialises an array that is an instance
variable of the window controller. At the end of the init method,
immediately before it returns, the retain count for that array is 1.
The next time the framework enters code in the window controller, on
awakeFromNib, putting a break point there at the first line of code
and then checking the retain count of the array gives a count of 4.
The array is bound to an NSArrayController, and when the controller
awakes from NIB, the array, also there, already has a retain count of 4.
Anybody any ideas what causes the array to be retained these
additional times?
Thanks,
António
-----------------------------------------------------------
And you would accept the seasons of your
heart, even as you have always accepted
the seasons that pass over your field.
--Kahlil Gibran
-----------------------------------------------------------
| Related mails | Author | Date |
|---|---|---|
| Antonio Nunes | Jul 2, 20:01 | |
| John Stiles | Jul 2, 20:21 | |
| Antonio Nunes | Jul 2, 21:00 | |
| mmalc crawford | Jul 2, 21:23 | |
| Antonio Nunes | Jul 3, 10:22 |






Cocoa mail archive

