FROM : Ken Thomases
DATE : Sat Mar 01 12:02:37 2008
On Feb 27, 2008, at 3:25 PM, Daniel Child wrote:
> In addition, I see that in the debugger there is both a "window" and
> a "_window" variable under self (the controller). Does this mean you
> are not supposed to formally declare an outlet for the controller's
> window?
NSWindowController has a window outlet already. Your custom subclass
of NSWindowController should not declare its own outlet.
The fact that NSWindowController uses "_window" as its ivar name
doesn't matter. The NIB-loading machinery will use setWindow: to
connect the outlet, not direct access to the ivar.
-Ken
DATE : Sat Mar 01 12:02:37 2008
On Feb 27, 2008, at 3:25 PM, Daniel Child wrote:
> In addition, I see that in the debugger there is both a "window" and
> a "_window" variable under self (the controller). Does this mean you
> are not supposed to formally declare an outlet for the controller's
> window?
NSWindowController has a window outlet already. Your custom subclass
of NSWindowController should not declare its own outlet.
The fact that NSWindowController uses "_window" as its ivar name
doesn't matter. The NIB-loading machinery will use setWindow: to
connect the outlet, not direct access to the ivar.
-Ken
| Related mails | Author | Date |
|---|---|---|
| Daniel Child | Feb 27, 22:25 | |
| Ken Worley | Feb 27, 22:46 | |
| Quincey Morris | Feb 28, 00:34 | |
| Ken Thomases | Mar 1, 12:02 |






Cocoa mail archive

