FROM : Ken Thomases
DATE : Thu May 15 10:36:21 2008
On May 15, 2008, at 2:21 AM, André Pang wrote:
> I have a nib file containing an NSObjectController. The
> NSObjectController's content is set to the File's Owner proxy
> object, and this creates a retain cycle. (The file's owner never
> gets deallocated because the object controller retains it, and the
> object controller never gets deallocated because the file's owner
> retains it as an IBOutlet.)
One of the nice things that NSWindowController and NSViewController do
for you is, if they are a nib's owner, they resolve this retain cycle
for you.
Cheers,
Ken
DATE : Thu May 15 10:36:21 2008
On May 15, 2008, at 2:21 AM, André Pang wrote:
> I have a nib file containing an NSObjectController. The
> NSObjectController's content is set to the File's Owner proxy
> object, and this creates a retain cycle. (The file's owner never
> gets deallocated because the object controller retains it, and the
> object controller never gets deallocated because the file's owner
> retains it as an IBOutlet.)
One of the nice things that NSWindowController and NSViewController do
for you is, if they are a nib's owner, they resolve this retain cycle
for you.
Cheers,
Ken
| Related mails | Author | Date |
|---|---|---|
| André Pang | May 15, 09:21 | |
| Ken Thomases | May 15, 10:36 | |
| Chris Suter | May 15, 14:09 | |
| André Pang | May 15, 16:53 | |
| Michael Babin | May 15, 17:59 |






Cocoa mail archive

